/**
 * Advanced Hero Widget - Complete Working CSS
 * Version 2.0 - Fully Tested
 */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
.hero-advanced {
    --primary-color: #17468A;
    --primary-light: #1E5AAD;
    --primary-dark: #0F2F5C;
    --secondary-color: #2563EB;
    --accent-color: #0EA5E9;
    --accent-warm: #F59E0B;
    --text-dark: #0f172a;
    --text-medium: #334155;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    --bg-light: #f8fafc;
    --bg-lighter: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(23, 70, 138, 0.15);
    --shadow-sm: 0 2px 8px rgba(23, 70, 138, 0.08);
    --shadow-md: 0 8px 32px rgba(23, 70, 138, 0.12);
    --shadow-lg: 0 20px 60px rgba(23, 70, 138, 0.15);
    --shadow-xl: 0 30px 90px rgba(23, 70, 138, 0.18);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   BASE RESET
   ============================================ */
.hero-advanced {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /*background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 50%, #E0F2FE 100%);*/
}

.hero-advanced *,
.hero-advanced *::before,
.hero-advanced *::after {
    box-sizing: border-box;
}

/* ============================================
   ANIMATED BACKGROUND CANVAS
   ============================================ */
.hero-bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
    pointer-events: none;
}

/* ============================================
   GRADIENT MESH BACKGROUND
   ============================================ */
.hero-gradient-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float-orb 20s ease-in-out infinite;
}

.gradient-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(23, 70, 138, 0.15) 0%, transparent 70%);
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.gradient-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
    top: 50%;
    right: -150px;
    animation-delay: 5s;
}

.gradient-orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
    bottom: -100px;
    left: 40%;
    animation-delay: 10s;
}

@keyframes float-orb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* ============================================
   ANIMATED GRID BACKGROUND
   ============================================ */
.hero-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
            linear-gradient(rgba(23, 70, 138, 0.04) 1px, transparent 1px),
            linear-gradient(90deg, rgba(23, 70, 138, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 2;
    pointer-events: none;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

/* ============================================
   HERO SECTION LAYOUT
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    z-index: 10;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.hero-content-wrapper {
    display: grid;
    gap: 80px;
    align-items: center;
}

/* Layout Variations */
.hero-content-wrapper.layout-split {
    grid-template-columns: 1fr 1fr;
}

.hero-content-wrapper.layout-asymmetric {
    grid-template-columns: 1.2fr 0.8fr;
}

.hero-content-wrapper.layout-centered {
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-content-wrapper.layout-fullwidth {
    grid-template-columns: 1fr;
}

/* ============================================
   CONTENT PANEL
   ============================================ */
.hero-content-panel {
    position: relative;
    z-index: 20;
}

/* ============================================
   EYEBROW - FIXED & VISIBLE
   ============================================ */
.hero-eyebrow {
    margin-bottom: 24px;
    overflow: hidden;
    opacity: 1 !important;
    visibility: visible !important;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.eyebrow-inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #17468A;
    background: linear-gradient(135deg,
    rgba(23, 70, 138, 0.08) 0%,
    rgba(30, 90, 173, 0.08) 100%);
    border: 1px solid rgba(23, 70, 138, 0.2);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.eyebrow-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
    transparent,
    rgba(23, 70, 138, 0.15),
    transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   HERO TITLE - FIXED & VISIBLE
   ============================================ */
.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    margin: 0 0 24px 0;
    position: relative;
    opacity: 1 !important;
    visibility: visible !important;
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

/* Gradient Text Effect on Hover */
.hero-title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg,
    #17468A 0%,
    #1E5AAD 40%,
    #0EA5E9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transition: opacity 0.6s ease;
}

/* ============================================
   TITLE HIGHLIGHTED WORDS
   ============================================ */
.title-highlight {
    display: inline;
    position: relative;
}

/* Style: Bold */
.title-highlight.highlight-bold {
    font-weight: 900;
}

/* Style: Gradient Color */
.title-highlight.highlight-gradient {
    background: linear-gradient(135deg, #17468A 0%, #0EA5E9 50%, #8B5CF6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

/* Style: Underline */
.title-highlight.highlight-underline {
    font-weight: 900;
    position: relative;
}

.title-highlight.highlight-underline::after {
    content: '';
    position: absolute;
    bottom: 0.05em;
    left: 0;
    width: 100%;
    height: 0.12em;
    background: linear-gradient(90deg, #17468A 0%, #0EA5E9 100%);
    border-radius: 4px;
    transform: scaleX(0);
    transform-origin: left;
    animation: underlineReveal 0.8s ease-out 1s forwards;
}

@keyframes underlineReveal {
    to {
        transform: scaleX(1);
    }
}

/* Style: Highlight Background */
.title-highlight.highlight-highlight-bg {
    font-weight: 900;
    padding: 0.05em 0.2em;
    margin: 0 -0.1em;
    background: linear-gradient(135deg,
        rgba(23, 70, 138, 0.15) 0%,
        rgba(14, 165, 233, 0.15) 100%);
    border-radius: 8px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* Style: Italic + Bold */
.title-highlight.highlight-italic-bold {
    font-weight: 900;
    font-style: italic;
    color: #17468A;
}

/* Animate highlight on load */
.title-highlight {
    animation: highlightFadeIn 0.6s ease-out 0.8s backwards;
}

@keyframes highlightFadeIn {
    from {
        opacity: 0.5;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   DESCRIPTION - FIXED & VISIBLE
   ============================================ */
.hero-description {
    font-size: 18px;
    line-height: 1.8;
    margin: 0 0 40px 0;
    max-width: 600px;
    opacity: 1 !important;
    visibility: visible !important;
    animation: fadeInUp 0.8s ease-out 0.7s backwards;
}

.hero-description p {
    margin: 0 0 16px 0;
}

.hero-description p:last-child {
    margin-bottom: 0;
}

/* ============================================
   CTA BUTTONS - FIXED & VISIBLE
   ============================================ */
.hero-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 40px;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 100;
}

/* Base Button - GUARANTEED VISIBLE */
.hero-btn {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 36px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    animation: fadeInUp 0.6s ease-out backwards;
}

.hero-btn:nth-child(1) {
    animation-delay: 0.9s;
}

.hero-btn:nth-child(2) {
    animation-delay: 1s;
}

.hero-btn:nth-child(3) {
    animation-delay: 1.1s;
}

/* Button Layers */
.btn-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-text {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent);
    z-index: 2;
    pointer-events: none;
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   BUTTON STYLES
   ============================================ */

/* Primary Button */
.hero-btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #17468A 0%, #1E5AAD 100%);
    box-shadow: 0 8px 32px rgba(23, 70, 138, 0.35);
    border: none;
}

.hero-btn-primary .btn-bg {
    background: linear-gradient(135deg, #1E5AAD 0%, #0EA5E9 100%);
}


/* Secondary Button */
.hero-btn-secondary {
    color: #17468A;
    background: transparent;
    border: 2px solid #17468A;
}

.hero-btn-secondary .btn-bg {
    background: #17468A;
}

.hero-btn-secondary:hover {
    transform: translateY(-4px);
    color: #ffffff;
    box-shadow: 0 12px 36px rgba(23, 70, 138, 0.25);
}

.hero-btn-secondary:hover .btn-bg {
    opacity: 1;
}

/* Ghost Button */
.hero-btn-ghost {
    color: #17468A;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(23, 70, 138, 0.2);
}

.hero-btn-ghost .btn-bg {
    background: rgba(255, 255, 255, 0.95);
}

.hero-btn-ghost:hover {
    border-color: rgba(23, 70, 138, 0.4);
}

.hero-btn-ghost:hover .btn-bg {
    opacity: 1;
}

/* Gradient Button */
.hero-btn-gradient {
    color: #ffffff;
    background: linear-gradient(90deg,
    #17468A 0%,
    #1E5AAD 50%,
    #0EA5E9 100%);
    background-size: 200% 100%;
    border: none;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ============================================
   BUTTON HOVER EFFECTS
   ============================================ */

/* Lift Effect */
.hero-btn.hover-lift:hover {
    transform: translateY(-4px) scale(1.02);
}

/* Fill Effect */
.hero-btn.hover-fill:hover .btn-bg {
    opacity: 1;
}

/* Shine Effect */
.hero-btn.hover-shine:hover .btn-shine {
    left: 100%;
}

/* Icon Animation */
.btn-text svg,
.btn-text i {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.hero-btn:hover .btn-text svg,
.hero-btn:hover .btn-text i {
    transform: translateX(4px);
}

/* ============================================
   MEDIA PANEL
   ============================================ */
.hero-media-panel {
    position: relative;
    z-index: 15;
    animation: fadeInScale 1s ease-out 0.5s backwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.media-container {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg,
    rgba(23, 70, 138, 0.1) 0%,
    rgba(14, 165, 233, 0.1) 100%);
}

/* Media Element */
.hero-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.media-container:hover .hero-media {
    transform: scale(1.05);
}

/* ============================================
   SHAPE MASKS
   ============================================ */

.media-container.shape-rounded {
    border-radius: 32px;
}

.media-container.shape-blob {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blob-morph 10s ease-in-out infinite;
}

@keyframes blob-morph {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

.media-container.shape-hexagon {
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.media-container.shape-circle {
    border-radius: 50%;
    aspect-ratio: 1/1;
}

/* ============================================
   BOOKING FORM
   ============================================ */
.hero-booking-form {
    margin-top: 80px;
    padding: 48px;
    border-radius: 32px;
    position: relative;
    z-index: 25;
    animation: fadeInUp 1s ease-out 1.2s backwards;
}

.form-style-glassmorphism {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(23, 70, 138, 0.15);
    box-shadow:
            0 8px 32px rgba(23, 70, 138, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */
.scroll-indicator {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 30;
    animation: fadeInUp 1s ease-out 1.5s backwards;
}

.scroll-mouse {
    width: 28px;
    height: 45px;
    border: 2px solid #17468A;
    border-radius: 50px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 10px;
    background: #17468A;
    border-radius: 10px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% {
        top: 8px;
        opacity: 1;
    }
    100% {
        top: 28px;
        opacity: 0;
    }
}

.scroll-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .hero-content-wrapper.layout-split,
    .hero-content-wrapper.layout-asymmetric {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .media-container {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .hero-container {
        padding: 0 24px;
    }

    .hero-section {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-btn {
        width: 100%;
        justify-content: center;
    }

    .media-container {
        height: 400px;
    }

    .hero-booking-form {
        padding: 32px 24px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
.hero-btn:focus-visible {
    outline: 3px solid #17468A;
    outline-offset: 4px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .hero-gradient-mesh,
    .hero-grid-bg,
    .scroll-indicator,
    .hero-cta-buttons {
        display: none !important;
    }
}

/* ============================================
   TYPING CURSOR ANIMATION
   ============================================ */
@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

.typing-cursor {
    display: inline-block;
    margin-left: 2px;
    font-weight: 300;
}

/* ============================================
   SPLIT TEXT IMPROVEMENTS
   ============================================ */
/* Title normal spacing */
.hero-title[data-animation="split-reveal"] {
    display: block !important;
    white-space: normal !important;
    word-spacing: normal !important;
    line-height: 1.2;
}

/* Word wrapper - GEEN margin needed (we gebruiken text nodes) */
.word-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    white-space: nowrap;
}

/* Characters */
.char {
    display: inline-block;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   GLITCH LAYERS
   ============================================ */
.glitch-layer {
    transition: all 0.1s ease;
    pointer-events: none;
}

.glitch-main {
    position: relative;
    z-index: 1;
}

/* ============================================
   SPLIT TEXT IMPROVEMENTS - FIXED
   ============================================ */

/* Title moet normal wrapping toestaan */
.hero-title {
    white-space: normal !important;
    word-spacing: normal;
}

/* Word wrapper met spatie via margin */
.word-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    white-space: nowrap; /* Voorkom wrap binnen woord */
}

/* Laatste woord geen margin */
.word-wrap:last-child {
    margin-right: 0;
}

/* Characters */
.char {
    display: inline-block;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Container voor split words */
.split-words-container {
    display: inline;
    line-height: inherit;
}

/* Als je animated bent, behoud spacing */
.hero-title[data-animation="split-reveal"] {
    display: block !important;
    line-height: 1.2;
    white-space: normal !important;
}

/* ============================================
   BOOKING FORM - COMPLETE
   ============================================ */
.booking-form-container {
    max-width: 900px;
    margin: 0 auto;
}

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

.booking-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 12px 0;
}

.booking-subtitle {
    font-size: 16px;
    color: var(--text-light);
    margin: 0;
}

.booking-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.booking-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.booking-field-submit {
    grid-column: span 2;
    margin-top: 16px;
}

.booking-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-medium);
}

.label-icon {
    width: 18px;
    height: 18px;
    color: var(--text-light);
}

.booking-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(23, 70, 138, 0.15);
    border-radius: 12px;
    transition: var(--transition-base);
    font-family: inherit;
}

.booking-input:focus {
    outline: none;
    border-color: #17468A;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(23, 70, 138, 0.1);
}

.booking-textarea {
    resize: vertical;
    min-height: 100px;
}

.booking-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #17468A 0%, #1E5AAD 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: 0 4px 14px rgba(23, 70, 138, 0.35);
    font-family: inherit;
}

.booking-submit-btn:hover {
    background: linear-gradient(135deg, #0F2F5C 0%, #17468A 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(23, 70, 138, 0.45);
}

.booking-submit-btn .btn-arrow {
    transition: transform 0.3s ease;
}

.booking-submit-btn:hover .btn-arrow {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .booking-form-grid {
        grid-template-columns: 1fr;
    }

    .booking-field-submit {
        grid-column: span 1;
    }
}

/* ============================================
   SCROLL-EXPANDING BOOKING FORM
   Modern Glassmorphism with Scroll Animation
   ============================================ */

.booking-form-section {
    position: relative;
    margin-top: 60px;
    padding: 40px 0;
    min-height: 200px;
    z-index: 50;
}

/* Form Wrapper - Glassmorphism Base */
.booking-form-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.booking-form-wrapper.form-style-glassmorphism {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 8px 32px rgba(23, 70, 138, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 32px 64px -12px rgba(23, 70, 138, 0.15);
}

/* ============================================
   COMPACT STATE - Initial Small View
   Fully visible first, then expands on scroll
   ============================================ */
.booking-compact-state {
    padding: 32px 40px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

/* Compact state styling - make it prominent */
.booking-form-wrapper[data-state="compact"] {
    transform: scale(0.92);
}

.booking-form-wrapper[data-state="compact"] .booking-compact-state {
    display: block;
    opacity: 1;
}

/* Hide compact when expanding/expanded */
.booking-form-wrapper[data-state="expanded"] .booking-compact-state,
.booking-form-wrapper[data-state="expanding"] .booking-compact-state {
    display: none;
    opacity: 0;
}

.compact-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #17468A;
    font-weight: 600;
    font-size: 18px;
}

.compact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(23, 70, 138, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
    border-radius: 14px;
    color: #17468A;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(23, 70, 138, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 5px rgba(23, 70, 138, 0.15);
    }
}

.compact-text {
    background: linear-gradient(135deg, #17468A 0%, #0EA5E9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.compact-arrow {
    display: flex;
    animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(8px);
    }
    60% {
        transform: translateY(4px);
    }
}

.compact-hint {
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 12px;
    opacity: 0.7;
}

/* Compact hover effect */
.booking-compact-state:hover .compact-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(23, 70, 138, 0.15) 0%, rgba(14, 165, 233, 0.15) 100%);
}

/* ============================================
   EXPANDED STATE - Full Form View
   Hidden initially, shown after scroll expansion
   ============================================ */
.booking-expanded-state {
    padding: 48px;
    opacity: 0;
    transform: translateY(30px);
    display: none; /* Hidden by default, JS controls visibility */
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.booking-form-wrapper[data-state="expanded"] .booking-expanded-state {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.booking-form-wrapper[data-state="expanding"] .booking-expanded-state {
    display: block;
}

/* Form fields stagger animation */
.booking-form-wrapper[data-state="expanded"] .booking-field {
    opacity: 0;
    transform: translateY(20px);
    animation: fieldReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.booking-form-wrapper[data-state="expanded"] .booking-field[data-field-index="1"] { animation-delay: 0.1s; }
.booking-form-wrapper[data-state="expanded"] .booking-field[data-field-index="2"] { animation-delay: 0.15s; }
.booking-form-wrapper[data-state="expanded"] .booking-field[data-field-index="3"] { animation-delay: 0.2s; }
.booking-form-wrapper[data-state="expanded"] .booking-field[data-field-index="4"] { animation-delay: 0.25s; }
.booking-form-wrapper[data-state="expanded"] .booking-field[data-field-index="5"] { animation-delay: 0.3s; }
.booking-form-wrapper[data-state="expanded"] .booking-field[data-field-index="6"] { animation-delay: 0.35s; }

@keyframes fieldReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Full width field */
.booking-field-full {
    grid-column: span 2;
}

/* ============================================
   FORM EXPAND PROGRESS BAR
   ============================================ */
.form-expand-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(23, 70, 138, 0.1);
    border-radius: 0 0 24px 24px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #17468A 0%, #0EA5E9 50%, #8B5CF6 100%);
    background-size: 200% 100%;
    animation: progressGradient 2s ease infinite;
    transition: width 0.3s ease;
    border-radius: 0 4px 4px 0;
}

@keyframes progressGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ============================================
   FLOATING ELEMENTS CONTAINER
   Hidden initially, appear after form expands
   ============================================ */
.form-floating-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 100;
    overflow: visible;
}

/* Only show floating container when form is expanded */
.booking-form-wrapper[data-state="compact"] + .form-floating-container,
.booking-form-wrapper[data-state="compact"] ~ .form-floating-container {
    opacity: 0;
    visibility: hidden;
}

.form-floating-element {
    position: absolute;
    pointer-events: auto;
    opacity: 0;
    transform: scale(0.5) translateY(20px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform, opacity;
}

.form-floating-element.is-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Floating Element Positions - CLOSER to form */
.form-floating-element.position-top-left {
    top: -15px;
    left: -15px;
}

.form-floating-element.position-top-right {
    top: -15px;
    right: -15px;
}

.form-floating-element.position-bottom-left {
    bottom: -15px;
    left: -15px;
}

.form-floating-element.position-bottom-right {
    bottom: -15px;
    right: -15px;
}

.form-floating-element.position-left-center {
    top: 50%;
    left: -25px;
    transform: translateY(-50%) scale(0.5);
}

.form-floating-element.position-left-center.is-visible {
    transform: translateY(-50%) scale(1);
}

.form-floating-element.position-right-center {
    top: 50%;
    right: -25px;
    transform: translateY(-50%) scale(0.5);
}

.form-floating-element.position-right-center.is-visible {
    transform: translateY(-50%) scale(1);
}

/* Floating Inner Card */
.form-floating-element .floating-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 20px;
    min-width: 100px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(23, 70, 138, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    text-align: center;
}

.floating-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: #17468A;
    font-size: 18px;
}

.floating-value {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #17468A 0%, #0EA5E9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.floating-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Rating Stars */
.floating-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rating-stars {
    color: #F59E0B;
    font-size: 14px;
    letter-spacing: 1px;
}

.rating-value {
    font-size: 20px;
    font-weight: 800;
    color: #17468A;
}

/* Avatar Stack */
.avatar-stack {
    display: flex;
    align-items: center;
}

.avatar-stack .avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #17468A, #0EA5E9);
    border: 2px solid white;
    margin-left: -8px;
    overflow: hidden;
}

.avatar-stack .avatar:first-child {
    margin-left: 0;
}

.avatar-stack .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-more {
    margin-left: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #17468A;
}

/* ============================================
   CUSTOMER REVIEW FLOATING ELEMENT
   ============================================ */
.form-floating-element.type-customer-review .floating-inner {
    flex-direction: row;
    gap: 12px;
    padding: 14px 18px;
    min-width: 200px;
    max-width: 280px;
    text-align: left;
    align-items: flex-start;
}

.floating-review-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #17468A, #0EA5E9);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(23, 70, 138, 0.2);
}

.floating-review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-review-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.floating-review-content {
    flex: 1;
    min-width: 0;
}

.floating-review-text {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-medium);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.floating-review-author {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dark);
}

.floating-review-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.floating-review-stars {
    color: #F59E0B;
    font-size: 10px;
    letter-spacing: 0;
}

.floating-review-date {
    font-size: 10px;
    color: var(--text-lighter);
}

/* Verified badge */
.floating-review-verified {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 9px;
    color: #10B981;
    font-weight: 600;
}

.floating-review-verified svg {
    width: 10px;
    height: 10px;
}

/* ============================================
   MINI TESTIMONIAL FLOATING ELEMENT
   ============================================ */
.form-floating-element.type-testimonial-mini .floating-inner {
    padding: 12px 16px;
    max-width: 220px;
}

.floating-testimonial-quote {
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-medium);
    font-style: italic;
    margin-bottom: 8px;
    position: relative;
    padding-left: 12px;
}

.floating-testimonial-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 20px;
    color: #17468A;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.floating-testimonial-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-testimonial-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #17468A, #0EA5E9);
    overflow: hidden;
}

.floating-testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-testimonial-name {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-dark);
}

/* ============================================
   BEFORE/AFTER FLOATING ELEMENT
   ============================================ */
.form-floating-element.type-before-after .floating-inner {
    padding: 10px;
    min-width: auto;
}

.floating-before-after {
    display: flex;
    gap: 4px;
    border-radius: 8px;
    overflow: hidden;
}

.floating-before-after-image {
    width: 100px;
    height: 100px;
    overflow: hidden;
    position: relative;
}

.floating-before-after-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-before-after-image span {
    position: absolute;
    bottom: 2px;
    left: 2px;
    font-size: 7px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 1px 4px;
    border-radius: 3px;
}

.floating-before-after-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-light);
    text-align: center;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   FLOATING ELEMENT ANIMATIONS
   ============================================ */

/* Float Animation */
.form-floating-element[data-animation="float"] {
    animation: floatElement 6s ease-in-out infinite;
}

@keyframes floatElement {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.form-floating-element.position-left-center[data-animation="float"],
.form-floating-element.position-right-center[data-animation="float"] {
    animation: floatElementCenter 6s ease-in-out infinite;
}

@keyframes floatElementCenter {
    0%, 100% {
        transform: translateY(-50%);
    }
    50% {
        transform: translateY(calc(-50% - 15px));
    }
}

/* Orbit Animation */
.form-floating-element[data-animation="orbit"] {
    animation: orbitElement 12s linear infinite;
}

@keyframes orbitElement {
    0% {
        transform: rotate(0deg) translateX(20px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(20px) rotate(-360deg);
    }
}

/* Pulse Animation */
.form-floating-element[data-animation="pulse"] .floating-inner {
    animation: pulseElement 2s ease-in-out infinite;
}

@keyframes pulseElement {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 8px 32px rgba(23, 70, 138, 0.15),
            0 0 0 0 rgba(23, 70, 138, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow:
            0 12px 40px rgba(23, 70, 138, 0.2),
            0 0 0 8px rgba(23, 70, 138, 0.05);
    }
}

/* Bounce Animation */
.form-floating-element[data-animation="bounce"] {
    animation: bounceElement 3s ease-in-out infinite;
}

@keyframes bounceElement {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Rotate In Animation */
.form-floating-element[data-animation="rotate-in"] {
    transform: rotate(-180deg) scale(0);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-floating-element[data-animation="rotate-in"].is-visible {
    transform: rotate(0deg) scale(1);
}

/* ============================================
   FORM EXPANSION ANIMATIONS
   ============================================ */

/* Scale & Reveal Animation */
.booking-form-section[data-expand-animation="scale-reveal"] .booking-form-wrapper {
    transform-origin: center top;
}

.booking-form-section[data-expand-animation="scale-reveal"] .booking-form-wrapper[data-state="compact"] {
    transform: scale(0.95);
}

.booking-form-section[data-expand-animation="scale-reveal"] .booking-form-wrapper[data-state="expanded"] {
    transform: scale(1);
}

/* Unfold Animation */
.booking-form-section[data-expand-animation="unfold"] .booking-form-wrapper {
    transform-origin: center top;
    perspective: 1000px;
}

.booking-form-section[data-expand-animation="unfold"] .booking-expanded-state {
    transform-origin: center top;
    transform: rotateX(-90deg);
    backface-visibility: hidden;
}

.booking-form-section[data-expand-animation="unfold"] .booking-form-wrapper[data-state="expanded"] .booking-expanded-state {
    transform: rotateX(0deg);
}

/* Morph Expand Animation */
.booking-form-section[data-expand-animation="morph"] .booking-form-wrapper {
    border-radius: 50px;
    transition: border-radius 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.booking-form-section[data-expand-animation="morph"] .booking-form-wrapper[data-state="expanded"] {
    border-radius: 24px;
}

/* Slide & Expand Animation */
.booking-form-section[data-expand-animation="slide-expand"] .booking-form-wrapper[data-state="compact"] {
    max-width: 500px;
}

.booking-form-section[data-expand-animation="slide-expand"] .booking-form-wrapper[data-state="expanded"] {
    max-width: 900px;
}

/* ============================================
   ENHANCED BOOKING FORM INPUTS
   ============================================ */
.booking-form-wrapper.form-style-glassmorphism .booking-input {
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(23, 70, 138, 0.1);
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.booking-form-wrapper.form-style-glassmorphism .booking-input:focus {
    background: rgba(255, 255, 255, 0.9);
    border-color: #17468A;
    box-shadow:
        0 0 0 4px rgba(23, 70, 138, 0.1),
        0 8px 24px rgba(23, 70, 138, 0.1);
    transform: translateY(-2px);
}

.booking-form-wrapper.form-style-glassmorphism .booking-input::placeholder {
    color: var(--text-lighter);
}

/* Enhanced Submit Button */
.booking-form-wrapper.form-style-glassmorphism .booking-submit-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #17468A 0%, #1E5AAD 50%, #0EA5E9 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    border-radius: 14px;
    box-shadow:
        0 8px 24px rgba(23, 70, 138, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.booking-form-wrapper.form-style-glassmorphism .booking-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s ease;
}

.booking-form-wrapper.form-style-glassmorphism .booking-submit-btn:hover::before {
    left: 100%;
}

.booking-form-wrapper.form-style-glassmorphism .booking-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 16px 40px rgba(23, 70, 138, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.booking-submit-btn .btn-icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.booking-submit-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Button Loader */
.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.booking-submit-btn.is-loading .btn-text,
.booking-submit-btn.is-loading .btn-icon {
    display: none;
}

.booking-submit-btn.is-loading .btn-loader {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 1024px) {
    .form-floating-element.position-left-center,
    .form-floating-element.position-right-center {
        display: none;
    }

    .form-floating-element.position-top-left,
    .form-floating-element.position-bottom-left {
        left: -5px;
    }

    .form-floating-element.position-top-right,
    .form-floating-element.position-bottom-right {
        right: -5px;
    }
}

@media (max-width: 768px) {
    .booking-form-section {
        margin-top: 40px;
        padding: 20px;
    }

    .booking-expanded-state {
        padding: 32px 24px;
    }

    .booking-field-full {
        grid-column: span 1;
    }

    .form-floating-element {
        transform: scale(0.8);
    }

    .form-floating-element .floating-inner {
        padding: 12px 14px;
        min-width: 80px;
    }

    .floating-value {
        font-size: 18px;
    }

    .floating-label {
        font-size: 10px;
    }

    .form-floating-element.position-top-left,
    .form-floating-element.position-top-right {
        top: -20px;
    }

    .form-floating-element.position-bottom-left,
    .form-floating-element.position-bottom-right {
        bottom: -20px;
    }
}

@media (max-width: 480px) {
    .form-floating-container {
        display: none;
    }

    .compact-content {
        flex-direction: column;
        gap: 12px;
    }

    .compact-icon {
        width: 56px;
        height: 56px;
    }

    .compact-text {
        font-size: 16px;
        text-align: center;
    }
}