/* ===================================
   InkedBooking - Premium Dark Theme
   =================================== */

:root {
    /* Colors - InkedBooking Brand (Red & Black) */
    --primary-bg: #050505;
    --secondary-bg: #0a0a0a;
    --card-bg: rgba(20, 20, 20, 0.6);
    --card-bg-hover: rgba(30, 30, 30, 0.8);
    --glass-border: rgba(255, 255, 255, 0.08);

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.5);

    --accent-red: #DC143C;
    --accent-red-dark: #B91C1C;
    --accent-gradient: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 5rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(220, 20, 60, 0.3);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===================================
   Reset & Base Styles
   =================================== */

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* ===================================
   Navigation
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    /* Matches v20 primary-bg */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand a {
    display: block;
}

.logo-img {
    height: 45px;
    width: auto;
    display: block;
    transition: var(--transition-base);
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
}

.nav-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-base);
}

.nav-menu a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(220, 20, 60, 0.5);
}

/* Sections Scroll Snap */
.hero,
.how-it-works,
.booking-intro,
.booking-wizard-section {
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 120px;
    /* Increased to account for navbar */
}

/* Utility Classes */
.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background {
    background: url('../images/hero-bg.jpg') center center no-repeat;
    background-size: cover;
    /* Covers screen without distortion */
    background-position: center 20%;
    /* Focus on the upper center (face) */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.3) 0%, rgba(5, 5, 5, 0.8) 50%, var(--primary-bg) 100%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Buttons
   =================================== */

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-red);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
}

.btn-primary:hover {
    background: var(--accent-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-2px);
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    transform: scale(0);
    transition: transform 0.6s;
}

.btn-glow:hover::after {
    transform: scale(1);
}

/* ===================================
   How It Works Section (Carousel)
   =================================== */

.how-it-works {
    background: var(--secondary-bg);
    position: relative;
    overflow: hidden;
    /* Hide scrollbar if we use custom controls, but we'll use native scroll for now */
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
}

/* Mobile Carousel Mode */
@media (max-width: 768px) {
    .steps-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: var(--spacing-2xl);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .steps-grid::-webkit-scrollbar {
        display: none;
    }
}

.step-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);

    /* Carousel Item Styles */
    min-width: 300px;
    flex: 1;
    scroll-snap-align: center;
}

/* Mobile specific for carousel */
@media (max-width: 768px) {
    .steps-grid {
        padding-left: 50vw;
        /* Center the first item */
        padding-right: 50vw;
        margin-left: calc(-1 * var(--spacing-lg));
        /* Counteract container padding */
        margin-right: calc(-1 * var(--spacing-lg));
    }

    .step-card {
        min-width: 80vw;
        /* Occupy most of screen width */
    }

    /* Fix centering offset */
    .steps-grid::after {
        content: '';
        min-width: calc(50vw - 40vw - var(--spacing-lg));
        /* Adjust padding */
    }
}

.step-card:hover {
    background: var(--card-bg-hover);
    transform: translateY(-10px);
    border-color: var(--accent-red);
    box-shadow: var(--shadow-glow);
}

.step-icon {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.step-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* ===================================
   Booking Section (Wizard)
   =================================== */

/* ===================================
   Booking Intro Section
   =================================== */

.booking-intro {
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 50% 50%, #1a0505 0%, var(--primary-bg) 70%);
    text-align: center;
    position: relative;
}

.booking-header-centered {
    max-width: 800px;
    margin: 0 auto;
}

.booking-header-centered .section-title {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
}

.booking-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.scroll-indicator {
    margin-top: var(--spacing-2xl);
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.arrow-down {
    font-size: 1.5rem;
    margin-top: 0.5rem;
    color: var(--accent-red);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* ===================================
   Booking Wizard Section
   =================================== */

.booking-wizard-section {
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--primary-bg);
    padding: var(--spacing-lg) 0;
    /* Reduced from xl */
}

.booking-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.booking-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

.badge-icon {
    color: var(--accent-red);
}

/* Wizard Container */
.wizard-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(15, 15, 15, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    /* Hide overflowing steps */
}

/* Wizard Form Slider */
.wizard-form {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 500%;
    /* 5 steps = 500% width */
}

.wizard-step {
    width: 20%;
    /* Each step takes 1/5 of the container */
    flex-shrink: 0;
    padding: 0 var(--spacing-sm);
    /* Add some spacing */
    opacity: 0.3;
    transition: opacity 0.3s ease;
    pointer-events: none;
    /* Prevent interaction with inactive steps */
}

.wizard-step.active {
    opacity: 1;
    pointer-events: all;
}

/* Progress Bar */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-2xl);
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.progress-step {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100px;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--secondary-bg);
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto var(--spacing-sm);
    transition: var(--transition-base);
    color: var(--text-muted);
}

.progress-step.active .step-number,
.progress-step.completed .step-number {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.4);
}

.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    transition: var(--transition-base);
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
    color: var(--text-primary);
}

/* Form Styles */
.step-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.step-header h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
}

.step-description {
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-red);
    box-shadow: 0 0 0 1px var(--accent-red);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

/* Upload Area */
.upload-area-compact {
    border: 2px dashed var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-base);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.upload-area-compact:hover {
    border-color: var(--accent-red);
    background: rgba(255, 255, 255, 0.05);
}

.upload-icon-small {
    font-size: 1.5rem;
}

/* Checkbox */
.checkbox-group {
    background: rgba(255, 255, 255, 0.03);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    margin: 0 !important;
}

.checkbox-label input {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-red);
}

/* Wizard Buttons */
.wizard-buttons {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--glass-border);
}

.wizard-buttons button {
    min-width: 150px;
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
    width: 100%;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: var(--spacing-lg);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin: 0 auto var(--spacing-lg);
    box-shadow: var(--shadow-glow);
}

.next-steps {
    margin: var(--spacing-xl) 0;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
}

.timeline-step {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--glass-border);
}

.timeline-step:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.timeline-number {
    width: 30px;
    height: 30px;
    background: var(--secondary-bg);
    border: 1px solid var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--accent-red);
    flex-shrink: 0;
}

/* ===================================
   Footer
   =================================== */

.footer {
    background: #000;
    border-top: 1px solid var(--glass-border);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-brand h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: white;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-column h4 {
    color: white;
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.footer-column a:hover {
    color: var(--accent-red);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===================================
   Responsive
   =================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .wizard-container {
        padding: var(--spacing-lg);
    }

    .wizard-progress {
        margin-bottom: var(--spacing-xl);
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .step-label {
        font-size: 0.7rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .footer-links {
        gap: 2rem;
        flex-wrap: wrap;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: translateY(20px);
    animation: slideUp 0.3s forwards;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.deposit-amount {
    text-align: center;
    margin: var(--spacing-md) 0;
    color: var(--accent-color);
}

.deposit-amount .currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.deposit-amount .amount {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.deposit-description {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.deposit-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-lg) 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
}

.deposit-features li {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.deposit-features li:last-child {
    margin-bottom: 0;
}

.btn-full {
    width: 100%;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-secondary);
    width: 100%;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-text:hover {
    color: var(--text-primary);
    text-decoration: underline;
}