/* ==========================================================================
   Wealth Building Financial - Page-Specific Components
   ========================================================================== */

/* Contact Page Specific */
.contact-form-section,
.appointment-section {
    background: var(--color-surface);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
    border: 1px solid var(--color-border);
}

.contact-form-section h2,
.appointment-section h2 {
    color: var(--color-text);
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-form-section h2 i,
.appointment-section h2 i {
    color: var(--color-primary);
    margin-right: 10px;
}

.contact-form-section select.form-control {
    height: 50px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.appointment-options {
    margin-top: 30px;
}

.appointment-card {
    background: var(--color-surface);
    padding: 30px 25px;
    border-radius: var(--radius-lg);
    text-align: center;
    height: 100%;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.appointment-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary);
}

.appointment-icon {
    margin-bottom: 20px;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(26, 156, 140, 0.12));
    border: 1px solid rgba(26, 156, 140, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.appointment-icon i {
    font-size: 28px;
    color: var(--color-primary);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.appointment-card h4 {
    color: var(--color-text);
    margin-bottom: 15px;
    font-weight: 600;
}

.appointment-card p {
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.appointment-card ul li {
    color: var(--color-text-muted);
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.appointment-card ul li:before {
    content: "✓";
    color: var(--color-success);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 5px;
}

.contact-info {
    padding-left: 20px;
}

.advisor-card,
.quick-contact {
    background: var(--color-surface);
    padding: 30px 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
    border: 1px solid var(--color-border);
}

.advisor-photo {
    text-align: center;
    margin-bottom: 20px;
}

.advisor-photo i {
    font-size: 5rem;
    color: var(--color-secondary);
}

.advisor-details h4 {
    color: var(--color-text);
    margin-bottom: 5px;
    font-weight: 600;
    text-align: center;
}

.advisor-title {
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 25px;
    font-style: italic;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-item i {
    color: var(--color-secondary);
    font-size: 18px;
    margin-right: 15px;
    margin-top: 3px;
    min-width: 20px;
}

.contact-item div {
    flex: 1;
}

.contact-item strong {
    color: var(--color-text);
    display: block;
    margin-bottom: 3px;
}

.contact-item a {
    color: var(--color-primary);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--color-secondary);
    text-decoration: none;
}

.quick-contact h4 {
    color: var(--color-text);
    margin-bottom: 15px;
    font-weight: 600;
}

/* Calculator Page Components */
.calculator-card {
    padding: 40px 30px;
}

.calculator-icon {
    margin-bottom: 25px;
}

.calculator-card h3 {
    color: var(--color-text);
    margin-bottom: 20px;
    font-weight: 600;
}

.calculator-card p {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
}

.calculator-card .btn-template-main {
    display: table;
    margin: 0 auto;
}

.calculator-section {
    margin-top: 40px;
}

.calculator-panel {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    padding: 35px;
}

.calculator-panel h2,
.panel-header h2 {
    color: var(--color-text);
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
}

.calculator-panel .lead,
.panel-header .lead {
    color: var(--color-text-muted);
    font-size: 16px;
    margin-bottom: 25px;
}

.calculator-form .help-block {
    color: var(--color-muted-2);
    font-size: 12px;
}

.tax-checkbox .help-block {
    margin-top: 5px;
}

.calculator-results {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.calculator-results h3 {
    color: var(--color-text);
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
}

.result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border-strong);
}

.result-row:last-child {
    border-bottom: none;
}

.result-row span {
    color: var(--color-text-muted);
}

.result-row strong {
    color: var(--color-text);
    font-size: 18px;
}

.small-note {
    color: var(--color-muted-2);
    font-size: 12px;
    margin-top: 15px;
}

.info-box {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 30px;
    margin-top: 40px;
    box-shadow: var(--shadow-sm);
}

.info-box h3 {
    color: var(--color-muted-3);
    margin-bottom: 15px;
    font-weight: 600;
}

.info-box h3 i {
    color: var(--color-info);
    margin-right: 10px;
}

.info-box p {
    color: var(--color-muted-2);
    line-height: 1.6;
    margin: 0;
}

/* Tool Card Components (Investment Tools) */
.tool-card {
    padding: 35px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tool-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-cta);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tool-card:hover:before {
    opacity: 1;
}

.tool-icon {
    margin-bottom: 25px;
}

.tool-card h3 {
    color: var(--color-text);
    margin-bottom: 20px;
    font-weight: 600;
}

.tool-card p {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.tool-features {
    margin-bottom: 25px;
}

.feature-tag {
    display: inline-block;
    background: var(--color-bg-light);
    color: var(--color-muted-3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin: 2px;
    border: 1px solid var(--color-border);
}

.tools-info {
    margin-top: 60px;
}

.info-card {
    background: var(--color-surface);
    padding: 35px 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.info-card h3 {
    color: var(--color-text);
    margin-bottom: 20px;
    font-weight: 600;
}

.info-card h3 i {
    color: var(--color-secondary);
    margin-right: 10px;
}

.info-card p {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.info-card ul li {
    color: var(--color-text-muted);
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.info-card ul li:before {
    content: "→";
    color: var(--color-primary);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 8px;
}

/* Market Research Components */
.research-section {
    margin-bottom: 40px;
}

.research-section h2 {
    color: var(--color-text);
    margin-bottom: 30px;
    font-weight: 700;
    border-bottom: 3px solid var(--color-secondary);
    padding-bottom: 10px;
}

.report-item {
    padding: 30px;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.report-date {
    color: var(--color-muted-2);
    font-size: 14px;
    font-weight: 500;
}

.report-type {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--color-bg-light);
    color: var(--color-muted-3);
}

.report-type.featured {
    background: var(--gradient-primary);
    color: #fff;
}

.report-item h3 {
    color: var(--color-text);
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.report-item p {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.report-tags {
    margin-bottom: 20px;
}

.tag {
    display: inline-block;
    background: var(--color-bg-light);
    color: var(--color-muted-3);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 5px;
    border: 1px solid var(--color-border);
}

.report-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-pages {
    color: var(--color-muted-2);
    font-size: 14px;
}

.sidebar {
    padding-left: 20px;
}

.market-summary,
.economic-calendar,
.newsletter-box {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
}

.market-summary h3,
.economic-calendar h3,
.newsletter-box h3 {
    color: var(--color-text);
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 18px;
}

.market-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.market-item:last-child {
    border-bottom: none;
}

.market-label {
    color: var(--color-text-muted);
    font-weight: 500;
}

.market-value {
    font-weight: 600;
    text-align: right;
}

.market-value.positive {
    color: var(--color-success);
}

.market-value.negative {
    color: #dc3545;
}

.market-value span {
    font-size: 12px;
    margin-left: 5px;
}

.market-update {
    color: var(--color-muted-2);
    font-size: 12px;
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--color-border-light);
}

.calendar-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.calendar-item:last-child {
    border-bottom: none;
}

.calendar-date {
    background: var(--color-secondary);
    color: #fff;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    margin-right: 15px;
    min-width: 50px;
    text-align: center;
}

.calendar-event {
    flex: 1;
}

.event-title {
    color: var(--color-text);
    font-weight: 500;
    margin-bottom: 3px;
}

.event-impact {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.event-impact.high {
    color: #dc3545;
}

.event-impact.medium {
    color: #ffc107;
}

.event-impact.low {
    color: var(--color-success);
}

.newsletter-form {
    margin-top: 15px;
}

.newsletter-form .form-control {
    margin-bottom: 15px;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.research-tools {
    background: var(--color-surface);
    padding: 40px;
    border-radius: var(--radius-lg);
    margin-top: 40px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.research-tools h2 {
    color: var(--color-text);
    margin-bottom: 30px;
    font-weight: 700;
    text-align: center;
}

.tool-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    transition: var(--transition);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.tool-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary);
}

.tool-item i {
    font-size: 3rem;
    color: var(--color-secondary);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.tool-item h4 {
    color: var(--color-text);
    margin-bottom: 15px;
    font-weight: 600;
}

.tool-item p {
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
    font-size: 14px;
}

.tool-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.tool-link:hover {
    color: var(--color-secondary);
    text-decoration: none;
}

/* Guide Card Components (Planning Guides) */
.guide-card {
    overflow: hidden;
}

.guide-image {
    background: var(--gradient-primary);
    padding: 40px;
    text-align: center;
}

.guide-image i {
    font-size: 4rem;
    color: white;
}

.guide-content {
    padding: 30px 25px;
}

.guide-content h3 {
    color: var(--color-text);
    margin-bottom: 15px;
    font-weight: 600;
}

.guide-content p {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.guide-topics {
    margin-bottom: 20px;
}

.topic-tag {
    display: inline-block;
    background: var(--color-bg-light);
    color: var(--color-muted-3);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
    margin: 2px;
    border: 1px solid var(--color-border);
}

.guide-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--color-border-light);
}

.reading-time {
    color: var(--color-muted-2);
    font-size: 12px;
}

.reading-time i {
    margin-right: 5px;
}

.difficulty {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.difficulty.beginner {
    background: #d4edda;
    color: #155724;
}

.difficulty.intermediate {
    background: #fff3cd;
    color: #856404;
}

.difficulty.advanced {
    background: #f8d7da;
    color: #721c24;
}

.featured-section {
    background: var(--color-surface);
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    margin: 60px 0;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.featured-section h2 {
    color: var(--color-text);
    margin-bottom: 20px;
    font-weight: 700;
}

.featured-section p {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
}

.benefits-list li {
    color: var(--color-text-muted);
    padding: 8px 0;
    display: flex;
    align-items: center;
}

.benefits-list li i {
    color: var(--color-secondary);
    margin-right: 12px;
    font-size: 14px;
}

.newsletter-signup {
    background: var(--gradient-primary);
    padding: 50px;
    border-radius: var(--radius-lg);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg);
}

.newsletter-signup h3 {
    color: white;
    margin-bottom: 15px;
    font-weight: 700;
}

.newsletter-signup p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.newsletter-signup .newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-signup .newsletter-form .form-control {
    border: none;
    padding: 15px 20px;
    font-size: 16px;
}

.newsletter-signup .newsletter-form .btn {
    padding: 15px 25px;
    background: white;
    color: var(--color-primary);
    border: none;
    font-weight: 600;
}

.newsletter-signup .newsletter-form .btn:hover {
    background: var(--color-bg-light);
    color: var(--color-secondary);
}

/* Resource Card Components (Tax Resources) */
.resource-card {
    padding: 35px 25px;
    text-align: center;
}

.resource-icon {
    margin-bottom: 25px;
}

.resource-card h3 {
    color: var(--color-text);
    margin-bottom: 20px;
    font-weight: 600;
}

.resource-card p {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.resource-list {
    margin-bottom: 25px;
    text-align: left;
}

.resource-list li {
    color: var(--color-text-muted);
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border-light);
    position: relative;
    padding-left: 25px;
}

.resource-list li:before {
    content: "✓";
    color: var(--color-secondary);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 8px;
}

.resource-list li:last-child {
    border-bottom: none;
}

/* Login/Portal Components (Client Portal) */
.login-card {
    padding: 50px 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header i {
    margin-bottom: 22px;
    width: 82px;
    height: 82px;
    border-radius: 20px;
    background: var(--gradient-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    box-shadow: var(--shadow-md);
}

.login-header h2 {
    color: var(--color-text);
    margin-bottom: 10px;
    font-weight: 700;
}

.login-header p {
    color: var(--color-text-muted);
    margin: 0;
}

.login-form .form-group {
    margin-bottom: 25px;
}

.login-form .form-group label {
    color: var(--color-text);
    font-weight: 600;
    margin-bottom: 8px;
}

.input-group-text {
    background-color: var(--color-bg-light);
    border-color: var(--color-border);
    color: var(--color-muted-2);
}

.login-links {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border-light);
}

.login-links a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 14px;
}

.login-links a:hover {
    color: var(--color-secondary);
    text-decoration: none;
}

.login-links span {
    color: var(--color-border-strong);
    margin: 0 10px;
}

.features-section {
    margin: 60px 0;
}

.features-section h2 {
    color: var(--color-text);
    margin-bottom: 50px;
    font-weight: 700;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 30px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-item h4 {
    color: var(--color-text);
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-item p {
    color: var(--color-text-muted);
    line-height: 1.6;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary);
}

.security-info {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.03), rgba(26, 156, 140, 0.06)) var(--color-surface);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.security-icon {
    font-size: 36px;
    color: var(--color-secondary);
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: rgba(26, 156, 140, 0.12);
    border: 1px solid rgba(26, 156, 140, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.security-info h3 {
    color: var(--color-text);
    margin-bottom: 15px;
    font-weight: 700;
}

.security-info p {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.security-features li {
    color: var(--color-text-muted);
    padding: 5px 0;
    display: flex;
    align-items: center;
}

.security-features li i {
    color: var(--color-secondary);
    margin-right: 10px;
    font-size: 14px;
}

/* Form Feedback messages */
.form-feedback {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--radius-sm);
    display: none;
}

.form-feedback.show {
    display: block;
}

.form-feedback.error {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.form-feedback.success {
    background-color: #d1fae5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

/* Page-Specific Responsive Overrides */
@media (max-width: 768px) {

    /* Shared Card Mobile Overrides */
    .service-card,
    .calculator-card,
    .tool-card,
    .resource-card,
    .guide-card {
        margin-bottom: 30px;
    }

    .contact-info {
        padding-left: 0;
        margin-top: 40px;
    }

    .contact-form-section,
    .appointment-section {
        padding: 25px 20px;
    }

    .advisor-card,
    .quick-contact {
        padding: 20px 15px;
    }

    /* Component Overrides */
    .calculator-panel {
        padding: 25px;
    }

    .calculator-results {
        margin-top: 25px;
    }

    .tool-card {
        padding: 25px 20px;
    }

    .tools-info {
        margin-top: 40px;
    }

    .info-card {
        padding: 25px 20px;
        margin-bottom: 30px;
    }

    .sidebar {
        padding-left: 0;
        margin-top: 40px;
    }

    .report-header,
    .report-actions,
    .guide-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .report-actions {
        gap: 15px;
    }

    .research-tools {
        padding: 25px 20px;
    }

    .tool-item,
    .feature-item {
        margin-bottom: 25px;
    }

    .guide-content {
        padding: 25px 20px;
    }

    .featured-section {
        padding: 30px 25px;
        margin: 40px 0;
    }

    .featured-section .cta-box {
        padding: 30px 20px;
        margin-top: 30px;
    }

    .newsletter-signup {
        padding: 30px 25px;
    }

    .resource-card {
        padding: 25px 20px;
    }

    .login-card {
        padding: 30px 25px;
        margin-bottom: 40px;
    }

    .features-section {
        margin: 40px 0;
    }

    .security-info {
        padding: 25px;
    }

    .security-icon {
        font-size: 28px;
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .info-box {
        padding: 20px;
        margin-top: 30px;
    }
}
