/* Homepage Layout Utilities */
.banner-section {
    margin-top: 0;
    padding-top: calc(var(--header-height) + 16px);
}

.section-soft {
    background-color: #f0f4f8;
    padding: 60px 0;
}

.section-plain {
    background-color: var(--bg-white);
}

.section-compact-top {
    padding-top: 40px;
}

/* Homepage Hero */
.hero {
    position: relative;
    padding-top: var(--header-height);
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f0f4f8 0%, #e6eaf0 100%);
    overflow: hidden;
}

.hero-bg-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light) 100%);
    clip-path: polygon(20% 0%, 100% 0, 100% 100%, 0% 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text {
    padding-right: 20px;
}

.hero-text h1 {
    margin-bottom: 20px;
    color: var(--primary-blue);
    font-size: 3rem;
}

.hero-title {
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #555;
    font-weight: 400;
    margin-bottom: 30px;
}

.hero-subtitle-text {
    font-size: 1rem;
    color: #777;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.btn-secondary-light {
    background: #fff;
    color: var(--primary-blue);
}

.hero-note {
    margin-top: 40px;
    border-left: 4px solid var(--accent-gold);
    padding-left: 20px;
}

.hero-note-text {
    margin-bottom: 0;
    font-style: italic;
    color: #555;
}

/* Homepage Cards and Sections */
.feature-description {
    margin: 15px 0;
    color: #666;
}

.feature-link {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
}

.testimonial-section {
    background-color: var(--bg-white);
    padding-top: 40px;
}

.reviewer-avatar-blue {
    background-color: #e3f2fd;
    color: var(--primary-blue);
}

.reviewer-avatar-gold {
    background-color: #fff3e0;
    color: var(--accent-gold);
}

.reviewer-avatar-green {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.reviewer-meta h4 {
    margin: 0;
    font-size: 1rem;
}

.reviewer-role {
    font-size: 0.85rem;
    color: #888;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}

.step-card {
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    color: #fff;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-number-highlight {
    background: var(--accent-gold);
}

.step-title {
    margin-bottom: 15px;
}

.step-description {
    font-size: 0.95rem;
    color: #666;
}

.cta-container {
    position: relative;
    z-index: 2;
}

/* Homepage Footer Details */
.footer-company,
.footer-address,
.footer-phone {
    color: #ccc;
    font-size: 1rem;
}

.footer-company,
.footer-address {
    margin-bottom: 10px;
}

.footer-phone {
    margin-bottom: 20px;
}

.footer-phone i {
    margin-right: 10px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-social-link {
    text-decoration: none;
}

.footer-social-icon {
    font-size: 2rem;
}

.footer-social-icon-facebook {
    color: #1877F2;
}

.footer-social-icon-line {
    color: #00B900;
}

.footer-policies {
    margin-top: 10px;
}

.footer-policy-link {
    color: #888;
    text-decoration: none;
    margin: 0 10px;
}

/* Homepage Popup */
.popup-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.popup-panel {
    background: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    animation: popupFadeIn 0.3s ease-out;
}

.popup-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.popup-link {
    text-decoration: none;
    display: block;
}

.popup-image {
    width: 100%;
    display: block;
}

.popup-body {
    padding: 20px;
    padding-bottom: 5px;
    text-align: center;
}

.popup-title {
    margin: 0 0 10px;
    color: #333;
    font-size: 1.5rem;
}

.popup-description {
    color: #666;
    margin: 0;
    font-size: 1rem;
}

.popup-description-hidden {
    display: none;
}

.popup-footer {
    padding: 10px 20px 20px;
    text-align: center;
    border-top: 1px solid #eee;
}

.popup-checkbox-label {
    color: #666;
    font-size: 0.9em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.popup-checkbox {
    width: 16px;
    height: 16px;
}

/* Homepage Modern CTA */
.cta-banner-modern {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1f44 0%, #1c4587 50%, #2c62b5 100%);
}

.cta-modern-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600"><defs><linearGradient id="carGrad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.03);stop-opacity:1" /><stop offset="100%" style="stop-color:rgba(255,255,255,0.01);stop-opacity:1" /></linearGradient></defs><path fill="url(%23carGrad)" d="M600,250 L750,250 L780,280 L780,350 L750,380 L550,380 L520,350 L520,280 Z M540,270 L540,300 L580,300 L580,270 Z M700,270 L700,300 L740,300 L740,270 Z M530,340 C530,350 540,360 550,360 C560,360 570,350 570,340 C570,330 560,320 550,320 C540,320 530,330 530,340 Z M730,340 C730,350 740,360 750,360 C760,360 770,350 770,340 C770,330 760,320 750,320 C740,320 730,330 730,340 Z"/></svg>');
    background-position: right center;
    background-repeat: no-repeat;
    background-size: 600px auto;
    opacity: 0.15;
    z-index: 1;
}

.cta-modern-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.cta-modern-headline {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 50px;
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.cta-features-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
    padding: 0 20px;
}

.cta-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 25px 15px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cta-feature-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(254, 196, 53, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-gold);
    transition: all 0.3s ease;
}

.cta-feature-item:hover .cta-feature-icon {
    background: var(--accent-gold);
    color: var(--primary-blue);
    transform: scale(1.1) rotate(5deg);
}

.cta-feature-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: center;
}

.cta-feature-text strong {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    display: block;
}

.cta-feature-text span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

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

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-btn:hover::before {
    width: 300px;
    height: 300px;
}

.cta-btn i,
.cta-btn span {
    position: relative;
    z-index: 1;
}

.cta-btn i {
    font-size: 1.5rem;
}

.cta-btn-line {
    background: linear-gradient(135deg, #00B900 0%, #00a000 100%);
    color: #fff;
}

.cta-btn-line:hover {
    background: linear-gradient(135deg, #00d000 0%, #00B900 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 185, 0, 0.4);
}

.cta-btn-form {
    background: linear-gradient(135deg, #fec435 0%, #e5af22 100%);
    color: #1c4587;
}

.cta-btn-form:hover {
    background: linear-gradient(135deg, #ffd35c 0%, #fec435 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(254, 196, 53, 0.5);
}

.cta-trust-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-bg-shape {
        width: 100%;
        height: 50%;
        clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
        bottom: 0;
        top: auto;
    }

    .hero {
        flex-direction: column;
        justify-content: center;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .cta-banner-modern {
        padding: 80px 0;
    }

    .cta-modern-headline {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }

    .cta-features-row {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .cta-modern-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .cta-btn {
        width: 100%;
        max-width: 400px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .banner-section {
        padding-top: calc(var(--header-height) + 12px);
    }

    .hero-bg-shape {
        display: none;
    }

    .hero {
        background: linear-gradient(135deg, #f0f4f8 0%, #e6eaf0 100%);
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 0;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .cta-banner-modern {
        padding: 60px 0;
    }

    .cta-modern-headline {
        font-size: 2rem;
        margin-bottom: 35px;
    }

    .cta-feature-item {
        padding: 20px 15px;
    }

    .cta-feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .cta-feature-text strong {
        font-size: 1rem;
    }

    .cta-feature-text span {
        font-size: 0.85rem;
    }

    .cta-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .cta-btn i {
        font-size: 1.3rem;
    }

    .cta-trust-text {
        font-size: 0.85rem;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .cta-modern-headline {
        font-size: 1.75rem;
        margin-bottom: 30px;
    }

    .cta-features-row {
        padding: 0 10px;
    }

    .cta-btn {
        padding: 14px 25px;
        font-size: 0.95rem;
    }
}
