/* ==========================================================================
   EEC Hero Section + Booking Form
   ========================================================================== */

/* Hero Section
   ========================================================================== */
.eec-hero {
    position: relative;
    width: 100vw;
    overflow: visible;
    display: flex;
    flex-direction: column;
    /* Break out of any parent container to full viewport width */
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    /* Pull up over the Astra header / any top spacing */
    margin-top: calc(-1 * var(--eec-hero-offset, 100px));
    padding-top: var(--eec-hero-offset, 100px);
    padding-bottom: 0;
    margin-bottom: 40px;
}

/* Visual area: background slideshow + content, sized independently from form */
.eec-hero__visual {
    position: relative;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hide Astra header on hero pages — replaced by custom navbar */
.eec-hero-page #masthead,
.eec-hero-page .ast-above-header-wrap,
.eec-hero-page .ast-main-header-wrap,
.eec-hero-page .site-header {
    display: none !important;
}

/* Remove any top margin/padding from main content area on hero pages */
.eec-hero-page .site-content,
.eec-hero-page #content,
.eec-hero-page .ast-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Hero Navbar
   ========================================================================== */
.eec-hero__navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 16px 40px;
    box-sizing: border-box;
}

.eec-hero__navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    border-radius: 60px;
    padding: 10px 12px 10px 24px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.eec-hero__navbar-logo img {
    height: 36px;
    width: auto;
    display: block;
}

.eec-hero__navbar-sitename {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
}

.eec-hero__navbar-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.eec-hero__navbar-menu li a {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.eec-hero__navbar-menu li a:hover {
    color: #116DA5;
}

.eec-hero__navbar-cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.eec-btn--navbar-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    background: transparent;
    border: 1.5px solid #d1d5db;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}

.eec-btn--navbar-secondary svg {
    color: #25d366;
}

.eec-btn--navbar-secondary:hover {
    border-color: #25d366;
    color: #25d366;
}

/* Navbar icon-only buttons (WhatsApp/Zalo in navbar) */
.eec-btn--navbar-icon {
    padding: 8px 10px;
    border-radius: 50px;
    line-height: 0;
}

.eec-btn--navbar-primary {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
    background: #116DA5;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}

.eec-btn--navbar-primary:hover {
    background: #0e5a8a;
    color: #FFFFFF;
}

/* Slideshow */
.eec-hero__slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.eec-hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.eec-hero__slide.active {
    opacity: 1;
}

.eec-hero__slide--placeholder {
    background: linear-gradient(135deg, #0a2540 0%, #1a4a7a 100%);
}

/* Overlay — disabled per design (no overlay on background images) */
.eec-hero__overlay {
    display: none;
}

/* Floating image (top-right corner) */
.eec-hero__float-img {
    position: absolute;
    top: 30px;
    right: 40px;
    width: 180px;
    height: 130px;
    border-radius: 16px;
    overflow: hidden;
    z-index: 3;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: none;
}

.eec-hero__float-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eec-hero__play-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #0a2540;
    cursor: pointer;
}

/* Content */
.eec-hero__content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 60px 60px 40px;
    margin-left: 190px;
    color: #fff;
    text-align: left;
}

.eec-hero__logo {
    margin-bottom: 40px;
}

.eec-hero__logo img {
    max-height: 60px;
    width: auto;
    display: block;
}

.eec-hero__heading {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 16px;
    color: #fff;
}

.eec-hero__subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 28px;
    color: #116DA5;
    max-width: 480px;
}

/* Buttons */
.eec-hero__buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.eec-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    line-height: 1;
}

.eec-btn--outline {
    border: 1.5px solid #116DA5;
    color: #116DA5;
    background: transparent;
}

.eec-btn--outline:hover {
    background: rgba(17, 109, 165, 0.08);
    border-color: #0e5a8a;
    color: #0e5a8a;
}

.eec-btn--primary {
    background: #116DA5;
    color: #FFFFFF;
    border: none;
    padding: 14px 32px;
    font-weight: 600;
    white-space: nowrap;
}

.eec-btn--primary:hover {
    background: #0e5a8a;
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(17, 109, 165, 0.4);
}

.eec-btn__arrow {
    transition: transform 0.2s;
}

.eec-btn--outline:hover .eec-btn__arrow {
    transform: translateX(3px);
}

/* WhatsApp button — filled green, icon only */
.eec-btn--whatsapp {
    background: #25d366;
    border: none;
    padding: 10px 14px;
    line-height: 0;
}

.eec-btn--whatsapp:hover {
    background: #1da851;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* Zalo button — filled blue, icon only */
.eec-btn--zalo {
    background: #0068FF;
    border: none;
    padding: 6px 10px;
    line-height: 0;
}

.eec-btn--zalo:hover {
    background: #0055d4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 104, 255, 0.4);
}

/* Scroll indicator */
.eec-hero__scroll {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.eec-hero__scroll-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    animation: eec-bounce 2s infinite;
    cursor: pointer;
}

@keyframes eec-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* ==========================================================================
   Form Bar
   ========================================================================== */
/* Form wrapper — separate section below the visual hero, no overlap */
.eec-appointment-form-wrapper {
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    padding: 24px 0 20px;
}

.eec-hero__form-bar {
    position: relative;
    background: #fff;
    border-radius: 16px;
    margin: 0 auto;
    padding: 20px 28px 24px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    max-width: 1240px;
    width: calc(100% - 80px);
}

.eec-hero__form-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
}

.eec-hero__form-icon {
    color: #2563eb;
    font-size: 18px;
}

/* Form Layout */
.eec-form__row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.eec-form__row--grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.eec-form__row--submit {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: nowrap;
}

.eec-form__row--submit .eec-captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.eec-form__row--submit .eec-form__submit {
    flex-shrink: 0;
}

.eec-form__field {
    flex: 1;
    position: relative;
}

.eec-form__field--btn {
    flex: 0 0 auto;
}

.eec-form__field--full {
    width: 100%;
}

/* Form Labels */
.eec-form__label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #1a1a2e;
    margin-bottom: 6px;
    text-align: left;
}

/* Form Inputs */
.eec-form input[type="text"],
.eec-form input[type="email"],
.eec-form input[type="tel"],
.eec-form input[type="date"],
.eec-form input[type="time"],
.eec-form select,
.eec-form textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #333;
    background: #f8f9fb;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    height: 44px;
}

.eec-form input[type="text"],
.eec-form input[type="email"],
.eec-form input[type="tel"] {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.eec-form textarea {
    border-radius: 16px;
    resize: vertical;
    height: auto;
    white-space: normal;
}

.eec-form input:focus,
.eec-form select:focus,
.eec-form textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: #fff;
}

.eec-form input::placeholder,
.eec-form textarea::placeholder {
    color: #94a3b8;
}

.eec-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8.825L1.175 4 2.238 2.938 6 6.7 9.763 2.937 10.825 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 36px;
}

/* Form Errors */
.eec-form__error {
    display: none;
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
    padding-left: 16px;
}

.eec-form__field.has-error input,
.eec-form__field.has-error select {
    border-color: #ef4444;
}

.eec-form__field.has-error .eec-form__error {
    display: block;
}

/* Step Animation */
.eec-form__step--expanded {
    display: none;
    overflow: hidden;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.eec-form__step--expanded.active {
    display: block;
    animation: eec-slideDown 0.4s ease-out;
}

@keyframes eec-slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 600px;
        transform: translateY(0);
    }
}

/* Success State */
.eec-form__success {
    text-align: center;
    padding: 30px 20px;
    animation: eec-fadeIn 0.5s ease;
}

.eec-form__success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #10b981;
    color: #fff;
    border-radius: 50%;
    font-size: 24px;
    margin-bottom: 12px;
}

.eec-form__success p {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

@keyframes eec-fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Loading State */
.eec-form__submit.loading {
    opacity: 0.7;
    pointer-events: none;
}

.eec-form__submit.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: eec-spin 0.6s linear infinite;
    margin-left: 8px;
}

@keyframes eec-spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .eec-hero__content {
        margin-left: 60px;
    }

    .eec-hero__heading {
        font-size: 36px;
    }

    .eec-form__row--grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .eec-hero__float-img {
        display: none;
    }

    .eec-hero__navbar-menu {
        display: none;
    }

    .eec-hero__navbar {
        padding: 12px 20px;
    }
}

@media (max-width: 768px) {
    .eec-hero {
        min-height: auto;
        padding-bottom: 0;
    }

    .eec-hero__navbar-inner {
        padding: 8px 8px 8px 16px;
    }

    .eec-btn--navbar-secondary {
        display: none;
    }

    .eec-hero__content {
        margin-left: 0;
        padding: 40px 20px 20px;
    }

    .eec-hero__heading {
        font-size: 28px;
    }

    .eec-hero__subtitle {
        font-size: 14px;
    }

    .eec-hero {
        margin-bottom: 20px;
        padding-bottom: 0;
    }

    .eec-hero__visual {
        min-height: 60vh;
    }

    .eec-hero__form-bar {
        margin: 0 auto;
        width: calc(100% - 32px);
        padding: 16px;
        border-radius: 12px;
    }

    .eec-hero__form-header {
        font-size: 13px;
    }

    .eec-form__row {
        flex-direction: column;
        gap: 10px;
    }

    .eec-form__row--grid {
        grid-template-columns: 1fr;
    }

    .eec-form__field--btn {
        width: 100%;
    }

    .eec-form__field--btn .eec-btn {
        width: 100%;
        justify-content: center;
    }

    .eec-form__row--submit {
        flex-direction: column;
        align-items: stretch;
    }

    .eec-form__row--submit .eec-captcha-row {
        justify-content: center;
    }

    .eec-form__submit {
        width: 100%;
        justify-content: center;
    }

    .eec-hero__buttons {
        flex-direction: column;
    }

    .eec-hero__buttons .eec-btn {
        justify-content: center;
    }

    .eec-hero__scroll {
        display: none;
    }
}

@media (max-width: 480px) {
    .eec-hero__heading {
        font-size: 24px;
    }

    .eec-hero__content {
        padding: 30px 16px 16px;
    }
}

/* ==========================================================================
   Sticky Zalo Button
   ========================================================================== */
.eec-zalo-sticky {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.eec-zalo-sticky__icon {
    position: relative;
    z-index: 2;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #0068FF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 104, 255, 0.4);
    transition: transform 0.2s;
}

.eec-zalo-sticky:hover .eec-zalo-sticky__icon {
    transform: scale(1.1);
}

.eec-zalo-sticky__pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 104, 255, 0.3);
    z-index: 1;
    animation: eec-zalo-pulse 2s ease-out infinite;
}

.eec-zalo-sticky__pulse--delay {
    animation-delay: 0.6s;
}

@keyframes eec-zalo-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.2);
        opacity: 0;
    }
}
