/* Big Apple AC Booking Form: Deep Space Glassmorphism Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

#big-apple-booking-container {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 780px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(13, 17, 30, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    color: #e5e7eb;
    position: relative;
    overflow: hidden;
}

/* Glowing background blobs */
#big-apple-booking-container::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

#big-apple-booking-container::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

#big-apple-booking-container * {
    box-sizing: border-box;
    z-index: 1;
}

/* Stepper Indicator */
.big-apple-stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    padding: 0 10px;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.step-num {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: #9ca3af;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.step-connector {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    margin: -20px 15px 0 15px;
    position: relative;
    z-index: 1;
}

.step-indicator.active .step-num {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.step-indicator.active .step-label {
    color: #3b82f6;
}

.step-indicator.completed .step-num {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    color: #10b981;
}

.step-indicator.completed .step-label {
    color: #10b981;
}

/* Steps content */
.big-apple-form-step {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.big-apple-form-step.active {
    display: block;
}

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

.step-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #ffffff;
    letter-spacing: -0.02em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.service-card {
    cursor: pointer;
    position: relative;
}

.service-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.service-card-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.25s ease;
}

.service-icon svg {
    width: 26px;
    height: 26px;
    fill: #9ca3af;
    transition: all 0.25s ease;
}

.service-name {
    font-size: 15px;
    font-weight: 600;
    color: #f3f4f6;
    margin: 0 0 8px 0;
}

.service-desc {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
    line-height: 1.4;
}

/* Hover & Active Card Effects */
.service-card:hover .service-card-content {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.service-card input[type="radio"]:checked + .service-card-content {
    background: rgba(59, 130, 246, 0.08);
    border-color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.service-card input[type="radio"]:checked + .service-card-content .service-icon {
    background: rgba(59, 130, 246, 0.2);
}

.service-card input[type="radio"]:checked + .service-card-content .service-icon svg {
    fill: #3b82f6;
}

/* Forms layout */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 25px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.form-group label .required {
    color: #ef4444;
    margin-left: 2px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 14px;
    color: #ffffff;
    transition: all 0.25s ease;
    outline: none;
}

.form-group select option {
    background: #0d111e;
    color: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.form-group textarea {
    resize: vertical;
}

/* Time Slot Matrix Grid */
.time-slot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.time-slot-card {
    cursor: pointer;
    position: relative;
}

.time-slot-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.time-slot-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.25s ease;
}

.slot-time {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.slot-desc {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 3px;
}

.time-slot-card:hover .time-slot-content {
    background: rgba(255, 255, 255, 0.06);
}

.time-slot-card input[type="radio"]:checked + .time-slot-content {
    background: rgba(6, 182, 212, 0.1);
    border-color: #06b6d4;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.time-slot-card input[type="radio"]:checked + .time-slot-content .slot-time {
    color: #06b6d4;
}

/* Custom File Upload Styling */
.file-upload-wrapper {
    position: relative;
    width: 100%;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-trigger {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.upload-icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.upload-text {
    font-size: 13px;
    color: #9ca3af;
}

.file-upload-wrapper:hover .file-upload-trigger {
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.04);
}

/* Buttons and Action Layouts */
.step-actions {
    display: flex;
    margin-top: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.step-actions.right-align {
    justify-content: flex-end;
}

.step-actions.justify {
    justify-content: space-between;
}

.ziprog-btn {
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    border: none;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ziprog-btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #6b7280 !important;
}

.btn-next,
.btn-submit {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-next:hover:not([disabled]),
.btn-submit:hover:not([disabled]) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-prev {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
}

.btn-prev:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Spinner for submitting states */
.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
}

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

.hidden {
    display: none !important;
}

/* SUCCESS STATE STYLING */
.big-apple-success-state {
    text-align: center;
    padding: 20px 0;
    animation: scaleUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.success-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 25px auto;
}

.success-icon-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.3);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

.success-icon-check {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #10b981;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #10b981;
    animation: fillCheck .4s ease-in-out .4s forwards, scaleCheck .3s ease-in-out .9s forwards;
    position: relative;
    z-index: 2;
}

.success-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-linecap: round;
    stroke: #10b981;
    fill: none;
    animation: strokeCircle .6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-linecap: round;
    animation: strokeCheck .3s cubic-bezier(0.65, 0, 0.45, 1) .8s forwards;
}

@keyframes strokeCircle {
    100% { stroke-dashoffset: 0; }
}

@keyframes strokeCheck {
    100% { stroke-dashoffset: 0; }
}

@keyframes fillCheck {
    100% { box-shadow: inset 0px 0px 0px 40px rgba(16, 185, 129, 0.15); }
}

.success-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
}

.success-msg {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 30px;
}

.order-summary-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px;
    max-width: 420px;
    margin: 0 auto 35px auto;
    text-align: left;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    font-size: 13px;
    color: #9ca3af;
}

.summary-value {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

#summary-id {
    color: #3b82f6;
}

.success-actions {
    display: flex;
    justify-content: center;
}

.btn-reset {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.btn-reset:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Responsive Media Queries */
@media screen and (max-width: 600px) {
    #big-apple-booking-container {
        padding: 20px 15px;
        margin: 20px 10px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .time-slot-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .step-label {
        font-size: 10px;
    }
    
    .step-num {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .step-connector {
        margin: -25px 5px 0 5px;
    }
}
