:root {
    --bg-primary: #0f1217;
    --bg-secondary: rgba(30, 34, 40, 0.8);
    --bg-tertiary: rgba(52, 56, 64, 0.8); 
    --text-primary: #ffffff;
    --text-secondary: #d0d8e2;
    --text-muted: #7a8596;
    --accent-blue: #00A3FF;
    --accent-orange: #F59A47;
    --accent-green: #00ff88;
    --accent-red: #ff4757;
    --gradient-primary: linear-gradient(106deg, #00A3FF 0%, #F59A47 100%);
    --gradient-alt: linear-gradient(106deg, #F59A47 0%, #00A3FF 100%);
    --gradient-hover: linear-gradient(106deg, #00A3FF 0%, #FFB470 100%);
    --gradient-alt-hover: linear-gradient(106deg, #FFB470 0%, #00A3FF 100%);
    --border-radius: 2.5em;
    --border-radius-sm: 1.5em;
}

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

body { 
    background: transparent; 
    font-family: 'Inter', sans-serif; 
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 400;
}

.container { max-width: 75em; margin: 0 auto; padding: 1em; }
.form-section { display: none; }
.form-section.active { display: block; }
.form-group { margin-bottom: 1.25em; }

.subsection-title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75em;
    text-align: center;
}

.tabs { 
    display: flex; 
    background: var(--bg-secondary); 
    border-radius: var(--border-radius-sm); 
    padding: 0.25em; 
    gap: 0.25em;
}

.tab { 
    flex: 1; 
    padding: 1em 1.5em; 
    text-align: center; 
    background: transparent; 
    border: none; 
    color: var(--text-secondary); 
    font-weight: 600; 
    border-radius: var(--border-radius-sm); 
    cursor: pointer; 
    font-size: 1em;
    transition: all 0.3s ease;
}

.tab.active { 
    background: var(--gradient-primary); 
    color: var(--text-primary); 
}

.custom-select, .form-input {
    width: 100%;
    padding: 1.125em 1.5em;
    border: 0.1em solid var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    font-size: 1em;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
}

.custom-select:focus, .form-input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.custom-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23a0a8b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.5em center;
    background-size: 1em;
    padding-right: 3em;
}

.slider-container {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    padding: 1em;
}

.slider-value { 
    text-align: center; 
    font-weight: 600; 
    color: var(--text-primary); 
    font-size: 1.25em; 
    margin-bottom: 0.75em; 
}

input[type="range"] { 
    width: 100%; 
    height: 0.5em; 
    background: var(--bg-tertiary); 
    border-radius: 1em; 
    margin: 1em 0; 
    -webkit-appearance: none;
}

input[type="range"]:hover {
    background: var(--accent-blue);
    opacity: 0.7;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 2em;
    height: 2em;
    background: var(--gradient-primary);
    border-radius: 50%;
    cursor: pointer;
    border: 0.25em solid var(--bg-primary);
}

input[type="range"]::-moz-range-thumb {
    width: 2em;
    height: 2em;
    background: var(--gradient-primary);
    border-radius: 50%;
    cursor: pointer;
    border: 0.25em solid var(--bg-primary);
}

.slider-labels { 
    display: flex; 
    justify-content: space-between; 
    font-size: 0.875em; 
    color: var(--text-muted); 
    font-weight: 500;
}

.step-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

@media (min-width: 768px) {
    .step-layout {
        flex-direction: row;
        align-items: flex-start;
    }
    .step-left { flex: 2; }
    .step-right { flex: 1; margin-left: 1.5em; }
    #step3 .step-right {
        display: flex;
        flex-direction: column;
        height: fit-content;
    }
}

.step1-controls {
    display: flex;
    flex-direction: column;
    gap: 1.25em;
}

.calendar-time-vertical {
    display: flex;
    flex-direction: column;
    gap: 1.25em;
}

.calendar-large {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    padding: 1.25em;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25em;
}

.calendar-month {
    font-size: 1.25em;
    font-weight: 600;
    color: var(--text-primary);
}

.calendar-nav { display: flex; gap: 0.5em; }

.calendar-nav button {
    background: var(--bg-tertiary);
    border: none;
    color: var(--text-primary);
    width: 2.5em;
    height: 2.5em;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 1.125em;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav button:hover {
    background: var(--accent-blue);
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 1em;
    font-size: 0.875em;
    color: var(--text-muted);
    font-weight: 600;
    gap: 0.125em;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.125em;
}

.day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9375em;
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    min-height: 3em;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
}

.day:hover:not(.disabled):not(.selected):not(.unavailable) { 
    background: var(--bg-tertiary); 
    color: var(--text-primary);
}

.day.selected { 
    background: var(--gradient-primary); 
    color: var(--text-primary); 
}

.day.today { border: 0.125em solid var(--accent-blue); }
.day.disabled { opacity: 0.3; cursor: not-allowed; }
.day.other-month { visibility: hidden; }

.day.unavailable { 
    background: rgba(255, 71, 87, 0.1); 
    color: var(--accent-red);
    cursor: not-allowed;
    opacity: 0.6;
}

.day.unavailable::after {
    content: "✕";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2em;
    color: var(--accent-red);
}

.day.unavailable:hover::after {
    content: "Not Available";
    font-size: 0.7em;
    white-space: nowrap;
}


.day.booked {
    background: rgba(0, 163, 255, 0.2);
    border: 0.125em solid var(--accent-blue);
}

.time-selection { 
    background: var(--bg-secondary); 
    border-radius: var(--border-radius-sm); 
    padding: 1.25em; 
}

.time-slots-compact { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 0.75em; 
}

.time-slot { 
    padding: 1em; 
    background: var(--bg-tertiary); 
    border: none; 
    border-radius: var(--border-radius-sm); 
    color: var(--text-primary); 
    font-size: 0.9375em; 
    font-weight: 500;
    cursor: pointer; 
    text-align: center; 
    transition: background-color 0.3s ease;
}

.time-slot:hover:not(.disabled):not(.selected) {
    background: var(--accent-blue);
}

.time-slot.selected { background: var(--gradient-primary); }
.time-slot.disabled { opacity: 0.3; cursor: not-allowed; }

.step3-form {
    display: flex;
    flex-direction: column;
    gap: 1.25em;
}

.form-row-compact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25em;
}

@media (min-width: 768px) {
    .form-row-compact { grid-template-columns: 1fr 1fr; }
}

.full-width { grid-column: 1 / -1; }

.price-card { 
    background: var(--bg-secondary); 
    color: var(--text-primary); 
    padding: 1.75em; 
    border-radius: var(--border-radius-sm); 
    border: 0.125em solid var(--bg-tertiary);
}

.booking-summary-compact {
    margin-bottom: 1.25em;
    padding-bottom: 1.25em;
    border-bottom: 0.125em solid var(--bg-tertiary);
}

.summary-title {
    font-size: 1.25em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.375em;
}

.summary-details {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 1em;
    margin-bottom: 0.75em;
}

.summary-date-time {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 1em;
    margin-bottom: 1em;
    padding: 0.75em;
    background: rgba(0, 163, 255, 0.1);
    border-radius: var(--border-radius-sm);
    text-align: center;
}


.summary-dates-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5em;
    margin-top: 1em;
}

@media (min-width: 480px) {
    .summary-dates-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.summary-date-item {
    padding: 0.75em;
    background: rgba(0, 163, 255, 0.08);
    border-radius: var(--border-radius-sm);
    font-size: 0.8em;
    text-align: center;
    color: var(--accent-blue);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 0.125em solid transparent;
}

.summary-date-item:hover {
    background: rgba(0, 163, 255, 0.15);
    border-color: var(--accent-blue);
}

.summary-date-item.selected {
    background: rgba(0, 163, 255, 0.2);
    border-color: var(--accent-blue);
}

.summary-date-item.completed {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.price-row { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    margin-bottom: 1em; 
    font-size: 1.125em; 
}

.price-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.price-value {
    font-weight: 600;
    color: var(--text-primary);
}

.total-price {
    font-size: 2.25em;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.deposit-price {
    font-size: 1.375em;
    font-weight: 600;
    color: var(--accent-orange);
}

.discount-info { 
    text-align: center; 
    margin-top: 1em; 
    font-size: 1em; 
    color: var(--accent-orange); 
    font-weight: 600; 
    padding: 0.875em;
    background: rgba(245, 154, 71, 0.1);
    border-radius: var(--border-radius-sm);
    border: 0.125em solid rgba(245, 154, 71, 0.3);
    display: none;
}

.discount-info.show { display: block; }

.buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.75em;
    padding-top: 1.75em;
    border-top: 0.1em solid #FFFFFF80;
    gap: 1em;
}

.btn {
    border: none;
    border-radius: var(--border-radius);
    padding: 1.125em 1.75em;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    height: 3.75em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    flex: 1;
    min-width: 0;
}

.btn-next { 
    background: var(--gradient-primary); 
    color: var(--text-primary); 
}

.btn-next:hover { background: var(--gradient-hover); }

.btn-book {
    background: var(--gradient-alt);
    color: var(--text-primary);
    border: 0.1em solid #ffffff;
}

.btn-book:hover { background: var(--gradient-alt-hover); }

.btn-back { 
    background: transparent; 
    color: var(--text-secondary);
    border: 0.1em solid #FFFFFF80;
}

.btn-back:hover {
    background: transparent;
    color: var(--text-primary);
}

.btn-next:disabled { 
    background: var(--bg-tertiary); 
    cursor: not-allowed;
    opacity: 0.5;
}

.paypal-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 2;
}

#paypal-button-container {
    min-width: 200px;
    min-height: 55px;
    flex: 1;
}


.paypal-buttons {
    border-radius: var(--border-radius) !important;
}

.error {
    font-size: 0.875em;
    color: #ff4757;
    margin-top: 0.5em;
    display: none;
    font-weight: 500;
}

.error.show { display: block; }

.success-screen {
    text-align: center;
    padding: 3.5em 2em;
}

.success-icon { 
    font-size: 5em; 
    margin-bottom: 1.25em; 
    color: #00ff88;
}

.success-title { 
    font-size: 2.25em; 
    font-weight: 700; 
    color: var(--text-primary); 
    margin-bottom: 0.875em; 
    line-height: 1.2;
}

.success-message { 
    font-size: 1.125em; 
    color: var(--text-secondary); 
    line-height: 1.6;
    max-width: 35em;
    margin: 0 auto;
}

.payment-processing {
    text-align: center;
    padding: 3.5em 2em;
}

.loading-spinner {
    border: 0.25em solid var(--bg-tertiary);
    border-top: 0.25em solid var(--accent-blue);
    border-radius: 50%;
    width: 4em;
    height: 4em;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.75em;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.iti { width: 100%; }
#phone { padding-left: 5em !important; }


@media (max-width: 767px) {
    .container { padding: 0.5em; }
    body { font-size: 14px; }
    .form-group { margin-bottom: 1em; }
    .subsection-title { font-size: 1.25em; margin-bottom: 0.75em; }
    .btn { padding: 1.125em 1.5em; font-size: 1em; height: 3.5em; }
    .total-price { font-size: 2em; }
    .custom-select, .form-input { padding: 1em 1.25em; font-size: 1em; }
    .slider-container { padding: 0.75em; }
    .calendar-large, .time-selection { padding: 1em; }
    .price-card { padding: 1.5em; }
    .buttons { margin-top: 1.5em; padding-top: 1.5em; flex-wrap: wrap; }
    .btn { flex: 1 1 calc(50% - 0.5em); min-width: 140px; }
    .paypal-container { flex: 1 1 100%; justify-content: center; margin-top: 1em; }
    #paypal-button-container { min-width: 100%; }
    .step-right { margin-left: 0; margin-top: 1.5em; }
    .step-layout { flex-direction: column-reverse; }
    .step-left { order: 2; }
    .step-right { order: 1; margin-top: 0; margin-bottom: 1.25em; }
    #step3 .step-right { display: block; }
    .calendar-large { padding: 0.75em; overflow: hidden; }
    .days { gap: 0.0625em; }
    .day { min-height: 2.5em; font-size: 0.875em; padding: 0.25em; }
    .weekdays { font-size: 0.75em; gap: 0.0625em; }
    .calendar-header { margin-bottom: 1em; }
    .calendar-month { font-size: 1.125em; }
    .slider-container { padding: 0.5em; }
    .slider-value { font-size: 1em; margin-bottom: 0.5em; }
    input[type="range"] { height: 0.4em; margin: 0.75em 0; }
    input[type="range"]::-webkit-slider-thumb { width: 1.5em; height: 1.5em; }
    .slider-labels { font-size: 0.75em; }
    

    .tabs { 
        flex-wrap: wrap; 
        padding: 0.5em;
    }
    .tab { 
        flex: 1 1 calc(33.333% - 0.5em); 
        min-width: 0; 
        padding: 1.25em 0.75em; 
        font-size: 0.95em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .time-slots-compact { grid-template-columns: repeat(2, 1fr); }
    .summary-dates-list { grid-template-columns: repeat(2, 1fr); }
    .summary-date-item { 
        padding: 0.6em 0.4em; 
        font-size: 0.75em; 
    }
}

@media (max-width: 480px) {
    .time-slots-compact { grid-template-columns: 1fr 1fr; }
    .buttons { flex-direction: row; flex-wrap: wrap; }
    .btn { flex: 1 1 calc(50% - 0.5em); min-width: 140px; }
    .calendar-large { padding: 0.5em; }
    .day { min-height: 2.25em; font-size: 0.8em; }
    .weekdays { font-size: 0.7em; }
    .tab { 
        font-size: 0.85em; 
        padding: 1em 0.5em; 
    }
    .summary-dates-list { grid-template-columns: repeat(2, 1fr); }
}

.loading-message {
    text-align: center;
    padding: 2em;
    color: var(--text-secondary);
    font-size: 1.1em;
    grid-column: 1 / -1;
}

.loading-spinner-small {
    border: 0.2em solid var(--bg-tertiary);
    border-top: 0.2em solid var(--accent-blue);
    border-radius: 50%;
    width: 2em;
    height: 2em;
    animation: spin 1s linear infinite;
    margin: 0 auto 1em;
}
