/* ==========================================
   WYNDHAM FINANCIAL GROUP - Pages Stylesheet
   Additional styles for Calculators & Services pages
   ========================================== */

/* ==========================================
   DARK MODE FIXES FOR PAGES
   ========================================== */
[data-theme="dark"] .calculator-header h2,
[data-theme="dark"] .calc-form label,
[data-theme="dark"] .result-label,
[data-theme="dark"] .service-detail-content h2,
[data-theme="dark"] .overview-content h2,
[data-theme="dark"] .stat-item .stat-label,
[data-theme="dark"] .about-story-content h2,
[data-theme="dark"] .about-story-content .lead,
[data-theme="dark"] .story-quote p,
[data-theme="dark"] .team-featured-content h3,
[data-theme="dark"] .value-card h3,
[data-theme="dark"] .why-choose-content h2,
[data-theme="dark"] .why-feature h4,
[data-theme="dark"] .section-header h2,
[data-theme="dark"] .contact-info-card h3,
[data-theme="dark"] .form-header h2,
[data-theme="dark"] .contact-form label,
[data-theme="dark"] .sidebar-card h3,
[data-theme="dark"] .broker-info h4,
[data-theme="dark"] .faq-question span,
[data-theme="dark"] .service-areas h3,
[data-theme="dark"] .area-tag {
    color: #ffffff;
}

[data-theme="dark"] .overview-content p,
[data-theme="dark"] .service-intro,
[data-theme="dark"] .feature p,
[data-theme="dark"] .about-story-content p,
[data-theme="dark"] .team-intro,
[data-theme="dark"] .credential p,
[data-theme="dark"] .value-card p,
[data-theme="dark"] .why-choose-content .lead,
[data-theme="dark"] .why-feature p,
[data-theme="dark"] .section-header p,
[data-theme="dark"] .contact-info-card p,
[data-theme="dark"] .form-header p,
[data-theme="dark"] .sidebar-card p,
[data-theme="dark"] .sidebar-features li,
[data-theme="dark"] .faq-answer p,
[data-theme="dark"] .result-note {
    color: var(--text-light);
}

[data-theme="dark"] .calc-form input,
[data-theme="dark"] .calc-form select,
[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form select,
[data-theme="dark"] .contact-form textarea {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: #ffffff;
}

[data-theme="dark"] .calc-form input::placeholder,
[data-theme="dark"] .contact-form input::placeholder,
[data-theme="dark"] .contact-form textarea::placeholder {
    color: var(--text-muted);
}

[data-theme="dark"] .area-tag {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .area-tag:hover {
    background: var(--primary-color);
    color: #ffffff;
}

[data-theme="dark"] .lender-logo {
    background: var(--card-bg);
}

[data-theme="dark"] .lender-logo img {
    filter: grayscale(30%) brightness(1.1);
    opacity: 0.9;
}

[data-theme="dark"] .lender-logo:hover img {
    filter: grayscale(0) brightness(1.1);
    opacity: 1;
}

/* ==========================================
   PAGE HERO SECTION
   ========================================== */
.page-hero {
    position: relative;
    padding: 180px 0 100px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2a2a4a 100%);
    text-align: center;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1560520653-9e0e4c89eb11?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    opacity: 0.15;
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: 52px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.page-hero p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 30px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
    color: var(--primary-color);
}

.breadcrumb a:hover {
    color: var(--primary-light);
}

.breadcrumb i {
    font-size: 10px;
}

/* ==========================================
   CALCULATORS SECTION
   ========================================== */
.calculators-section {
    padding: 80px 0;
    background: var(--body-bg);
}

.calculators-grid {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.calculator-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.calculator-card:hover {
    box-shadow: var(--shadow-lg);
}

.calculator-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2a2a4a 100%);
    padding: 40px;
    text-align: center;
}

.calc-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}

.calculator-header h2 {
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 10px;
}

.calculator-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

.calculator-body {
    padding: 40px;
}

.calc-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.calc-form .form-group {
    margin-bottom: 0;
}

.calc-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon span {
    position: absolute;
    left: 15px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
}

.input-icon input {
    padding-left: 35px;
}

.calc-form input,
.calc-form select {
    width: 100%;
    padding: 14px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
    background: var(--card-bg);
    color: var(--text-dark);
    transition: var(--transition);
}

.calc-form input:focus,
.calc-form select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.calc-form .btn {
    margin-top: 20px;
}

/* Calculator Results */
.calc-result {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.result-box {
    background: var(--light-bg);
    padding: 25px;
    border-radius: var(--radius);
    text-align: center;
}

.result-box.highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.result-box.highlight .result-label,
.result-box.highlight .result-value {
    color: #ffffff;
}

.result-label {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.result-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.result-value.small {
    font-size: 24px;
}

.result-note {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 15px;
    text-align: center;
}

/* ==========================================
   SERVICES OVERVIEW SECTION
   ========================================== */
.services-overview {
    padding: 80px 0;
    background: var(--body-bg);
}

.overview-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.overview-content h2 {
    margin-bottom: 20px;
}

.overview-content p {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.8;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 500;
}

/* ==========================================
   SERVICE DETAIL SECTION
   ========================================== */
.service-detail {
    padding: 80px 0;
    background: var(--body-bg);
}

.service-detail.alt-bg {
    background: var(--light-bg);
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-detail-grid.reverse {
    direction: rtl;
}

.service-detail-grid.reverse > * {
    direction: ltr;
}

.service-badge {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #ffffff;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 25px;
}

.service-detail-content h2 {
    font-size: 38px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.service-intro {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.feature {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature > i {
    color: var(--primary-color);
    font-size: 22px;
    margin-top: 3px;
    flex-shrink: 0;
}

.feature h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.feature p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

.service-detail-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.service-detail-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

/* ==========================================
   PROCESS SECTION
   ========================================== */
.process-section {
    padding: 80px 0;
    background: var(--secondary-color);
}

.process-section .container {
    max-width: 1200px;
}

.process-section .section-tag {
    color: var(--primary-light);
    display: block;
    margin-bottom: 10px;
}

.process-section h2 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 36px;
}

.process-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    margin-bottom: 0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.process-section .process-grid .process-step {
    position: relative;
    padding: 30px 25px 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.process-section .process-grid .process-step:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
}

.process-section .process-grid .step-number {
    position: absolute;
    top: -12px;
    left: 25px;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 15px;
    width: auto;
    height: auto;
    min-width: auto;
}

.process-section .process-grid .step-icon {
    width: 55px;
    height: 55px;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
    flex-shrink: 0;
}

.process-section .process-grid .process-step h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.process-section .process-grid .process-step p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .process-section {
        padding: 60px 0;
    }
    
    .process-section h2 {
        font-size: 28px;
    }
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    text-align: center;
}

.cta-content h2 {
    color: #ffffff;
    font-size: 40px;
    margin-bottom: 20px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-outline {
    border-color: #ffffff;
    color: #ffffff;
}

.cta-section .btn-outline:hover {
    background: #ffffff;
    color: var(--primary-dark);
}

.cta-section .btn-primary {
    background: #ffffff;
    color: var(--primary-color);
    border-color: #ffffff;
}

.cta-section .btn-primary:hover {
    background: var(--secondary-color);
    color: #ffffff;
    border-color: var(--secondary-color);
}

/* ==========================================
   ABOUT PAGE STYLES
   ========================================== */

/* About Hero Variation */
.about-hero::before {
    background: url('https://images.unsplash.com/photo-1600880292203-757bb62b4baf?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

/* About Story Section */
.about-story-section {
    padding: 100px 0;
    background: var(--body-bg);
}

.about-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-story-content .lead {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-story-content p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.story-quote {
    background: var(--light-bg);
    padding: 30px;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
    margin-top: 30px;
}

.story-quote i {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 15px;
    display: block;
}

.story-quote p {
    font-size: 18px;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.story-quote span {
    color: var(--primary-color);
    font-weight: 600;
}

.about-story-image {
    position: relative;
}

.about-story-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.story-badge {
    position: absolute;
    bottom: -30px;
    right: 30px;
    background: var(--primary-color);
    color: #fff;
    padding: 20px 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.story-badge span {
    display: block;
    font-size: 36px;
    font-weight: 700;
}

.story-badge p {
    font-size: 14px;
    margin: 0;
}

/* Team Section */
.team-section {
    padding: 100px 0;
    background: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-header p {
    color: var(--text-light);
    font-size: 17px;
}

.team-featured {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 50px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.team-featured-image {
    position: relative;
}

.team-featured-image img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
}

.team-social {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.team-social a {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.team-social a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.team-featured-content {
    padding: 40px 40px 40px 0;
}

.team-featured-content h3 {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.team-role {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 16px;
    display: block;
    margin-bottom: 20px;
}

.team-intro {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.team-credentials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.credential {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.credential i {
    color: var(--primary-color);
    font-size: 24px;
    margin-top: 3px;
}

.credential h5 {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.credential p {
    font-size: 13px;
    color: var(--text-muted);
}

.team-contact-buttons {
    display: flex;
    gap: 15px;
}

/* Values Section */
.values-section {
    padding: 100px 0;
    background: var(--body-bg);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.value-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 25px;
}

.value-card h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.value-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

/* About Stats Section */
.about-stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2a2a4a 100%);
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.about-stat {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-stat .stat-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.about-stat .stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
}

.about-stat .stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

/* Why Choose Section */
.why-choose-section {
    padding: 100px 0;
    background: var(--light-bg);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-choose-content .lead {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.why-feature {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.why-feature > i {
    color: var(--primary-color);
    font-size: 22px;
    margin-top: 3px;
}

.why-feature h4 {
    font-size: 17px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.why-feature p {
    color: var(--text-light);
    font-size: 15px;
}

.why-choose-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Lenders Section */
.lenders-section {
    padding: 80px 0;
    background: var(--body-bg);
    overflow: hidden;
}

.lenders-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 40px;
}

.lenders-track {
    display: flex;
    gap: 40px;
    animation: scrollLogos 20s linear infinite;
    width: max-content;
}

.lenders-track:hover {
    animation-play-state: paused;
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.lender-logo {
    background: var(--card-bg);
    padding: 25px 35px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 100px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    flex-shrink: 0;
}

.lender-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.lender-logo img {
    max-width: 140px;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(50%);
    opacity: 0.85;
    transition: var(--transition);
}

.lender-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}

.lender-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    text-align: center;
    transition: var(--transition);
}

.lender-logo:hover .lender-name {
    color: var(--primary-color);
}

.lenders-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    margin-top: 30px;
}

/* ==========================================
   CONTACT PAGE STYLES
   ========================================== */

/* Contact Hero Variation */
.contact-hero::before {
    background: url('https://images.unsplash.com/photo-1423666639041-f56000c27a9a?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

/* Contact Info Section */
.contact-info-section {
    padding: 80px 0;
    background: var(--body-bg);
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.contact-info-card {
    background: var(--card-bg);
    padding: 35px 25px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 2px solid transparent;
}

.contact-info-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.contact-info-card .contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

.contact-info-card h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.contact-info-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 10px;
}

.contact-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
    word-break: break-word;
}

a.contact-link:hover {
    color: var(--primary-dark);
}

/* Contact Main Section */
.contact-main-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.contact-main-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 50px;
}

.contact-form-wrapper {
    background: var(--card-bg);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-header {
    margin-bottom: 30px;
}

.form-header h2 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.form-header p {
    color: var(--text-light);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
    background: var(--card-bg);
    color: var(--text-dark);
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-light);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.form-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 20px;
}

.form-note i {
    margin-right: 5px;
}

/* Form Success Message */
.form-success {
    text-align: center;
    padding: 60px 30px;
}

.form-success i {
    font-size: 70px;
    color: #22c55e;
    margin-bottom: 25px;
}

.form-success h3 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.form-success p {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 30px;
}

/* Contact Sidebar */
.contact-sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.sidebar-card h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.sidebar-card p {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 20px;
}

.broker-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.broker-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.broker-info h4 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.broker-info > p {
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 8px;
}

.broker-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.broker-rating .stars {
    color: #ffc107;
    font-size: 12px;
}

.broker-rating span {
    font-size: 12px;
    color: var(--text-muted);
}

.sidebar-features {
    list-style: none;
}

.sidebar-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-dark);
}

.sidebar-features li:last-child {
    border-bottom: none;
}

.sidebar-features i {
    color: var(--primary-color);
}

.sidebar-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition);
    color: #fff;
}

.social-link.facebook { background: #1877f2; }
.social-link.broker { background: var(--primary-color); }
.social-link.linkedin { background: #0077b5; }
.social-link.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

.social-link:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* Map Section */
.map-section {
    padding: 80px 0 0;
    background: var(--body-bg);
}

.map-wrapper {
    margin: 40px 0;
    border-radius: 0;
    overflow: hidden;
}

.map-wrapper iframe {
    display: block;
    filter: grayscale(30%);
}

.service-areas {
    padding: 40px 0;
    text-align: center;
}

.service-areas h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.areas-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.area-tag {
    background: var(--card-bg);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.area-tag:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border-radius: var(--radius);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.faq-question span {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.faq-question i {
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 25px 20px;
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

/* ==========================================
   RESPONSIVE STYLES
   ========================================== */
@media (max-width: 1024px) {
    .overview-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-story-grid,
    .why-choose-grid,
    .team-featured {
        grid-template-columns: 1fr;
    }
    
    .team-featured-image img {
        min-height: 350px;
    }
    
    .team-featured-content {
        padding: 30px;
    }
    
    .team-credentials {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lenders-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 140px 0 60px;
    }
    
    .page-hero h1 {
        font-size: 36px;
    }
    
    .page-hero p {
        font-size: 17px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-header,
    .calculator-body {
        padding: 25px;
    }
    
    .calculator-header h2 {
        font-size: 24px;
    }
    
    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .service-detail-grid.reverse {
        direction: ltr;
    }
    
    .service-detail-content h2 {
        font-size: 30px;
    }
    
    .service-detail-image img {
        height: 350px;
    }
    
    .overview-stats {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .stat-item {
        padding: 30px 20px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cta-content h2 {
        font-size: 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .about-story-image img {
        height: 350px;
    }
    
    .story-badge {
        bottom: -20px;
        right: 20px;
        padding: 15px 20px;
    }
    
    .story-badge span {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .page-hero h1 {
        font-size: 28px;
    }
    
    .overview-stats {
        grid-template-columns: 1fr;
    }
    
    .result-value {
        font-size: 26px;
    }
    
    .result-value.small {
        font-size: 20px;
    }
    
    .about-story-content .lead {
        font-size: 17px;
    }
    
    .story-quote p {
        font-size: 16px;
    }
    
    .team-featured-content h3 {
        font-size: 26px;
    }
    
    .about-stat .stat-number {
        font-size: 28px;
    }
    
    .lenders-grid {
        grid-template-columns: 1fr;
    }
    
    .broker-card {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================
   SERVICE DETAIL PAGES
   ========================================== */
.service-detail-section {
    padding: 80px 0;
    background: var(--body-bg);
}

.service-detail-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

.service-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.service-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-nav li {
    margin-bottom: 5px;
}

.service-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: var(--radius);
    color: var(--text-color);
    transition: var(--transition);
}

.service-nav li a:hover,
.service-nav li.active a {
    background: var(--primary-color);
    color: #fff;
}

.service-nav li a i {
    width: 20px;
    text-align: center;
}

.service-main {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.service-intro {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding: 40px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.intro-icon-large {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-icon-large i {
    font-size: 36px;
    color: #fff;
}

.intro-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 15px;
}

.intro-content p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
}

.service-features h3,
.service-options h3,
.service-process h3,
.service-faq h3,
.service-considerations h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 25px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.feature-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15) 0%, rgba(var(--primary-rgb), 0.05) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 26px;
    color: var(--primary-color);
}

.feature-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.option-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.option-card.featured {
    border: 2px solid var(--primary-color);
}

.option-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.option-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.option-header i {
    font-size: 28px;
    color: var(--primary-color);
}

.option-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--heading-color);
}

.option-card > p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.option-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.option-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-color);
    border-top: 1px solid var(--border-color);
}

.option-features li:first-child {
    border-top: none;
}

.option-features li i {
    color: var(--success-color);
    font-size: 12px;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-light);
}

.process-steps .process-step {
    display: flex;
    gap: 25px;
    position: relative;
    padding: 25px 0;
}

.process-steps .step-number {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.step-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
}

.considerations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.consideration-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.consideration-card i {
    font-size: 32px;
    color: var(--primary-color);
}

.consideration-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--heading-color);
}

.consideration-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
}

.service-faq .faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(var(--primary-rgb), 0.05);
}

.faq-question h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0;
}

.faq-question i {
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 25px 20px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
}

.faq-answer a {
    color: var(--primary-color);
}

.service-cta-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 50px;
    text-align: center;
}

.cta-box-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.cta-box-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: 30px;
}

.cta-box-content .cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-box-content .btn-primary {
    background: #fff;
    color: var(--primary-color);
}

.cta-box-content .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.cta-box-content .btn-outline {
    border-color: #fff;
    color: #fff;
}

.cta-box-content .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Sidebar Cards */
.sidebar-cta,
.grants-card,
.savings-calculator,
.investor-tips,
.commercial-info,
.construction-info {
    text-align: center;
}

.grants-card .grant-amount {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    margin: 15px 0;
}

.grants-card .grant-note {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.savings-calculator .savings-display {
    background: rgba(var(--primary-rgb), 0.1);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.savings-calculator .savings-amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    margin: 10px 0;
}

.savings-calculator .savings-note {
    font-size: 12px;
    color: var(--text-light);
}

.investor-tips .tip-text {
    font-style: italic;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Savings Example */
.savings-example h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 25px;
}

.example-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.example-scenario {
    padding: 30px;
    background: var(--section-bg);
}

.example-scenario h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 20px;
}

.scenario-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-item .label {
    font-size: 12px;
    color: var(--text-light);
}

.detail-item .value {
    font-size: 18px;
    font-weight: 600;
    color: var(--heading-color);
}

.detail-item.highlight .value {
    color: var(--primary-color);
}

.example-results {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--section-bg);
    border-radius: var(--radius);
}

.result-item i {
    font-size: 24px;
    color: var(--primary-color);
}

.result-item .result-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--heading-color);
}

.result-item .result-label {
    font-size: 12px;
    color: var(--text-light);
}

.result-item.featured {
    background: var(--primary-color);
}

.result-item.featured i,
.result-item.featured .result-value,
.result-item.featured .result-label {
    color: #fff;
}

.example-note {
    padding: 15px 30px;
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
}

/* First Home Buyer Schemes */
.schemes-section h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 15px;
}

.section-intro {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 16px;
}

.schemes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.scheme-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
}

.scheme-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.scheme-card.featured {
    border: 2px solid var(--primary-color);
}

.scheme-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.scheme-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.scheme-header i {
    font-size: 28px;
    color: var(--primary-color);
}

.scheme-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--heading-color);
}

.scheme-card > p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.scheme-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.scheme-criteria {
    list-style: none;
    padding: 0;
    margin: 0;
}

.scheme-criteria li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-color);
}

.scheme-criteria li i {
    color: var(--success-color);
    font-size: 12px;
    margin-top: 4px;
}

/* Checklist Section */
.checklist-section h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 25px;
}

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.checklist-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.check-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-icon i {
    font-size: 32px;
    color: var(--primary-color);
}

.check-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 8px;
}

.check-content p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
}

/* Tips Section */
.tips-section h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 25px;
}

.tips-section .tips-grid,
.construction-tips .tips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.tips-section .tip-card,
.construction-tips .tip-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.tips-section .tip-card:hover,
.construction-tips .tip-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.tip-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 15px;
}

.tips-section .tip-card h4,
.construction-tips .tip-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 10px;
}

.tips-section .tip-card p,
.construction-tips .tip-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
}

/* Property Types Grid */
.property-types-section h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 25px;
}

.property-types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.property-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.property-type:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.property-type i {
    font-size: 32px;
    color: var(--primary-color);
}

.property-type span {
    font-size: 14px;
    font-weight: 500;
    color: var(--heading-color);
}

/* SMSF Section */
.smsf-section .smsf-card {
    display: flex;
    gap: 30px;
    padding: 40px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.smsf-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15) 0%, rgba(var(--primary-rgb), 0.05) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.smsf-icon i {
    font-size: 36px;
    color: var(--primary-color);
}

.smsf-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 15px;
}

.smsf-content > p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.smsf-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 25px;
    list-style: none;
    padding: 0;
}

.smsf-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-color);
}

.smsf-features li i {
    color: var(--success-color);
    font-size: 12px;
}

/* Construction Page Specific */
.construction-how-it-works h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 25px;
}

.how-it-works-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.how-it-works-text p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.progress-payments-visual h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 20px;
}

.progress-bar-visual {
    display: flex;
    border-radius: var(--radius);
    overflow: hidden;
    height: 50px;
}

.progress-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    font-size: 10px;
    position: relative;
}

.progress-stage:nth-child(even) {
    background: var(--primary-dark);
}

.stage-label {
    font-weight: 600;
}

.stage-percent {
    font-weight: 400;
    opacity: 0.8;
}

.build-stages h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 25px;
}

.stages-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.stage-item {
    display: grid;
    grid-template-columns: 60px 1fr 80px;
    gap: 20px;
    padding: 25px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.stage-item:first-child {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.stage-item:last-child {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    border-bottom: none;
}

.stage-item:hover {
    background: var(--section-bg);
}

.stage-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15) 0%, rgba(var(--primary-rgb), 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stage-icon i {
    font-size: 20px;
    color: var(--primary-color);
}

.stage-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 8px;
}

.stage-content p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

.stage-payment {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.construction-tips h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 25px;
}

/* ==========================================
   LOAN COMPARISON CALCULATOR
   ========================================== */
.comparison-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.comparison-loan-card {
    background: var(--section-bg);
    border-radius: var(--radius-lg);
    padding: 25px;
    border: 1px solid var(--border-color);
}

.loan-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.loan-card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0;
    flex: 1;
}

.loan-card-header h3 i {
    color: var(--primary-color);
    margin-right: 10px;
}

.loan-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.loan-badge-1 {
    background: rgba(var(--primary-rgb), 0.15);
    color: var(--primary-color);
}

.loan-badge-2 {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.loan-badge-3 {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: var(--transition);
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.comparison-results {
    margin-top: 40px;
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--secondary-color);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.comparison-table th:first-child {
    width: 200px;
}

.comparison-table td:first-child {
    font-weight: 500;
    color: var(--heading-color);
}

.comparison-table td:first-child i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 18px;
}

.comparison-table .highlight-row {
    background: rgba(var(--primary-rgb), 0.05);
}

.comparison-table .highlight-row td {
    font-weight: 600;
}

.comparison-table .total-row {
    background: var(--secondary-color);
}

.comparison-table .total-row td {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}

.comparison-table .total-row td:first-child i {
    color: var(--primary-light);
}

.loan-col-1 {
    background: rgba(var(--primary-rgb), 0.1) !important;
}

.loan-col-2 {
    background: rgba(59, 130, 246, 0.1) !important;
}

.loan-col-3 {
    background: rgba(16, 185, 129, 0.1) !important;
}

.comparison-winner {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 2px solid #10b981;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
}

.winner-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.winner-icon i {
    font-size: 28px;
    color: #fff;
}

.winner-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 8px;
}

.winner-content p {
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.6;
}

.winner-content strong {
    color: var(--heading-color);
}

.comparison-charts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.chart-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.chart-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 20px;
}

.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bar-label {
    width: 80px;
    font-size: 13px;
    color: var(--text-light);
    flex-shrink: 0;
}

.bar-container {
    flex: 1;
    height: 30px;
    background: var(--section-bg);
    border-radius: var(--radius);
    overflow: hidden;
}

.bar {
    height: 100%;
    border-radius: var(--radius);
    transition: width 0.5s ease;
}

.bar-1 {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.bar-2 {
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
}

.bar-3 {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.bar-value {
    width: 80px;
    font-size: 14px;
    font-weight: 600;
    color: var(--heading-color);
    text-align: right;
    flex-shrink: 0;
}

.results-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* ==========================================
   RESPONSIVE - SERVICE PAGES
   ========================================== */
@media (max-width: 1024px) {
    .service-detail-layout {
        grid-template-columns: 1fr;
    }
    
    .service-sidebar {
        order: 2;
    }
    
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .schemes-grid {
        grid-template-columns: 1fr;
    }
    
    .tips-section .tips-grid,
    .construction-tips .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .property-types-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .how-it-works-content {
        grid-template-columns: 1fr;
    }
    
    .comparison-charts {
        grid-template-columns: 1fr;
    }
    
    .scenario-details {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .example-results {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .service-intro {
        flex-direction: column;
        text-align: center;
    }
    
    .features-grid,
    .checklist-grid,
    .considerations-grid {
        grid-template-columns: 1fr;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .tips-section .tips-grid,
    .construction-tips .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .property-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .smsf-section .smsf-card {
        flex-direction: column;
        text-align: center;
    }
    
    .smsf-features {
        grid-template-columns: 1fr;
    }
    
    .stage-item {
        grid-template-columns: 50px 1fr;
    }
    
    .stage-payment {
        display: none;
    }
    
    .progress-bar-visual {
        flex-direction: column;
        height: auto;
    }
    
    .progress-stage {
        width: 100% !important;
        padding: 10px;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .comparison-winner {
        flex-direction: column;
        text-align: center;
    }
    
    .winner-icon {
        margin: 0 auto;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .bar-item {
        flex-wrap: wrap;
    }
    
    .bar-label {
        width: 100%;
    }
    
    .bar-container {
        width: calc(100% - 95px);
    }
    
    .service-cta-box {
        padding: 30px;
    }
    
    .cta-box-content h3 {
        font-size: 24px;
    }
    
    .cta-box-content .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .intro-icon-large {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }
    
    .intro-icon-large i {
        font-size: 28px;
    }
    
    .intro-content h2 {
        font-size: 24px;
    }
    
    .property-types-grid {
        grid-template-columns: 1fr;
    }
    
    .scenario-details {
        grid-template-columns: 1fr;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 10px;
        font-size: 13px;
    }
}

/* Service Action Buttons */
.service-action-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.service-action-btns .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 480px) {
    .service-action-btns {
        flex-direction: column;
    }
    
    .service-action-btns .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================
   GLOBAL MOBILE OVERFLOW FIX
   ========================================== */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        position: relative;
    }
    
    * {
        max-width: 100vw;
    }
    
    .page-hero,
    .calculators-hero,
    .services-hero,
    .about-hero,
    .contact-hero,
    .hero,
    .header,
    .footer,
    section,
    .container {
        max-width: 100vw !important;
        overflow-x: hidden;
    }
    
    /* Ensure hero sections fill viewport width */
    .page-hero,
    .calculators-hero,
    .services-hero,
    .about-hero,
    .contact-hero {
        width: 100%;
        left: 0;
        right: 0;
    }
}
