/* Booking Form Styles */

.booking-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #000000 0%, #DC143C 50%, #000000 100%);
    z-index: -1;
}

.booking-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.booking-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Booking Steps */
.booking-steps {
    background: rgba(0, 0, 0, 0.8);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(220, 20, 60, 0.2);
    backdrop-filter: blur(20px);
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0.5;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(220, 20, 60, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.step.active .step-number {
    background: var(--gradient-crimson);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.5);
}

.step.completed .step-number {
    background: #4ade80;
    border-color: #4ade80;
}

.step.completed .step-number::before {
    content: '✓';
    font-size: 20px;
}

.step-title {
    color: white;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.step.active .step-title {
    color: #ff1744;
    font-weight: 600;
}

.step-line {
    flex: 1;
    height: 2px;
    background: rgba(220, 20, 60, 0.3);
    position: relative;
    top: -25px;
    transition: all 0.3s ease;
}

.step.completed + .step-line {
    background: #4ade80;
}

/* Form Container */
.booking-form-container {
    background: rgba(0, 0, 0, 0.9);
    border-radius: var(--border-radius-xl) 0 0 var(--border-radius-xl);
    border: 1px solid rgba(220, 20, 60, 0.2);
    backdrop-filter: blur(20px);
}

.info-sidebar {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 0 var(--border-radius-xl) var(--border-radius-xl) 0;
    border-left: 1px solid rgba(220, 20, 60, 0.2);
}

/* Form Steps */
.form-step {
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.form-step.active {
    display: block;
    opacity: 1;
    animation: fadeInRight 0.5s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Form Labels */
.form-label {
    color: white;
    margin-bottom: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.form-label i {
    color: #ff1744;
    margin-right: 8px;
}

.form-text {
    font-size: 12px;
    margin-top: 4px;
}

/* Optional Section Toggle */
.optional-section {
    border-top: 1px solid rgba(220, 20, 60, 0.2);
    padding-top: 1rem;
    margin-top: 2rem;
}

.optional-fields {
    overflow: hidden;
    transition: all 0.3s ease;
    max-height: 0;
    opacity: 0;
}

.optional-fields.show {
    max-height: 1000px;
    opacity: 1;
    display: block !important;
    animation: slideDown 0.3s ease-out;
}

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

#toggleOptional {
    background: none;
    border: none;
    padding: 0;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

#toggleOptional:hover {
    color: #ff1744;
}

#toggleOptional i {
    transition: transform 0.3s ease;
}

#toggleOptional.active i {
    transform: rotate(180deg);
}

/* Time Preference Grid */
.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.time-option {
    position: relative;
}

.time-btn {
    width: 100%;
    padding: 1.5rem 1rem;
    font-size: 14px;
    border: 2px solid rgba(220, 20, 60, 0.3);
    transition: all 0.3s ease;
    text-align: center;
    height: auto;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    position: relative;
    overflow: hidden;
}

.time-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 20, 60, 0.1), transparent);
    transition: left 0.3s ease;
}

.time-btn:hover::before {
    left: 100%;
}

.time-preference .btn-check:checked + .btn {
    background: var(--gradient-crimson);
    border-color: var(--primary-color);
    transform: scale(1.05);
    color: white;
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.4);
}

.time-preference .btn:hover {
    background: rgba(220, 20, 60, 0.2);
    border-color: rgba(220, 20, 60, 0.5);
    transform: translateY(-2px);
    color: white;
}

/* Form Controls */
.form-control-modern {
    border: 2px solid #1a1a1a;
    border-radius: var(--border-radius-md);
    padding: 14px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #0a0a0a;
    color: white;
}

.form-control-modern:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
    background: #000000;
    color: white;
    outline: none;
}

.form-control-modern:valid {
    border-color: #4ade80;
}

.form-control-modern::placeholder {
    color: #888888;
}

.form-select.form-control-modern {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.input-group-text {
    background: rgba(220, 20, 60, 0.2);
    border: 2px solid #1a1a1a;
    color: white;
    border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
    border-right: none;
}

.input-group .form-control-modern {
    border-left: none;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
}

.input-group:focus-within .input-group-text {
    border-color: var(--primary-color);
}

/* Form Check Styles */
.form-check-modern .form-check-input {
    width: 20px;
    height: 20px;
    border-radius: var(--border-radius-sm);
    border: 2px solid #444444;
    margin-top: 2px;
    background: #0a0a0a;
    transition: all 0.3s ease;
}

.form-check-modern .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.form-check-modern .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
    border-color: var(--primary-color);
}

.form-check-modern .form-check-label {
    font-size: 14px;
    margin-left: 10px;
    cursor: pointer;
    color: white;
    line-height: 1.5;
}

.form-check-modern .form-check-label a {
    color: #ff1744;
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-check-modern .form-check-label a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Validation Styles */
.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.was-validated .form-control-modern:invalid {
    border-color: #dc3545;
}

.was-validated .form-control-modern:valid {
    border-color: #4ade80;
}

/* Form Navigation */
.form-navigation {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.form-navigation .btn {
    min-width: 120px;
}

/* Summary Section */
.booking-summary {
    background: rgba(220, 20, 60, 0.05);
    border: 1px solid rgba(220, 20, 60, 0.2);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.booking-summary h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.summary-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.summary-value {
    color: white;
    font-weight: 500;
    font-size: 14px;
}

/* What Happens Next */
.what-happens-next {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.next-steps {
    margin-top: 1rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-icon i {
    font-size: 16px;
    color: #4ade80;
}

.step-item span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.4;
}

/* Calendar Availability */
.calendar-availability {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.availability-info {
    background: rgba(220, 20, 60, 0.1);
    border-radius: var(--border-radius-sm);
    padding: 1rem;
    border: 1px solid rgba(220, 20, 60, 0.2);
}

.availability-info .d-flex {
    margin-bottom: 0.5rem;
}

.availability-info .d-flex:last-child {
    margin-bottom: 0;
}

/* Info Sidebar Styles */
.info-icon {
    width: 80px;
    height: 80px;
    background: rgba(220, 20, 60, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 2px solid rgba(220, 20, 60, 0.3);
}

.info-icon i {
    font-size: 2rem;
    color: #ff1744;
}

.info-list {
    margin-top: 2rem;
}

.info-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(220, 20, 60, 0.1);
    border-color: rgba(220, 20, 60, 0.3);
    transform: translateY(-2px);
}

.info-check {
    width: 24px;
    height: 24px;
    background: #4ade80;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-check i {
    font-size: 14px;
    color: white;
    font-weight: bold;
}

.info-item h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 0.25rem;
}

.info-item small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.4;
}

/* Quick Contact */
.quick-contact {
    background: rgba(220, 20, 60, 0.1);
    border: 1px solid rgba(220, 20, 60, 0.2);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    margin-top: 2rem;
}

.quick-contact h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 0.75rem;
}

.quick-contact p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.quick-contact i {
    color: #ff1744;
    margin-right: 8px;
}

/* Testimonial */
.testimonial {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    margin-top: 1rem;
}

.testimonial-avatar {
    flex-shrink: 0;
}

.testimonial-avatar i {
    color: #4ade80;
    font-size: 2rem;
}

.testimonial p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.testimonial small {
    color: #4ade80;
    font-weight: 600;
    font-size: 12px;
}

/* Loading States */
.form-loading {
    position: relative;
    pointer-events: none;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-md);
    z-index: 10;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(220, 20, 60, 0.2);
    border-top: 4px solid #DC143C;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Success/Error Messages */
.form-message {
    padding: 1rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.form-message i {
    margin-right: 0.5rem;
    font-size: 18px;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4ade80;
}

.form-message.error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .booking-form-container {
        border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
    }

    .info-sidebar {
        border-radius: 0 0 var(--border-radius-xl) var(--border-radius-xl);
        border-left: none;
        border-top: 1px solid rgba(220, 20, 60, 0.2);
    }

    .time-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .time-btn {
        min-height: 70px;
        padding: 1rem 0.5rem;
        font-size: 13px;
    }

    .steps-container {
        gap: 0.5rem;
    }

    .step {
        min-width: 100px;
    }

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

    .step-title {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .booking-steps {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .booking-form-container,
    .info-sidebar {
        padding: 1.5rem;
    }

    .time-grid {
        grid-template-columns: 1fr;
    }

    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .form-navigation .btn {
        width: 100%;
    }

    .info-list {
        margin-top: 1.5rem;
    }

    .info-item {
        margin-bottom: 1rem;
        padding: 0.75rem;
    }

    .quick-contact,
    .testimonial {
        margin-top: 1.5rem;
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .booking-steps {
        padding: 1rem;
    }

    .steps-container {
        flex-direction: column;
        gap: 1rem;
    }

    .step-line {
        display: none;
    }

    .step {
        width: 100%;
        flex-direction: row;
        text-align: left;
        justify-content: flex-start;
    }

    .step-number {
        margin-right: 1rem;
        margin-bottom: 0;
    }

    .booking-form-container,
    .info-sidebar {
        padding: 1rem;
    }

    .form-control-modern {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .time-btn {
        min-height: 60px;
        padding: 0.75rem 0.5rem;
    }
}

/* Print Styles */
@media print {
    .booking-bg,
    .floating-elements,
    .form-navigation {
        display: none !important;
    }

    .booking-form-container,
    .info-sidebar {
        background: white !important;
        color: black !important;
        border: 1px solid #ccc !important;
    }

    .form-control-modern {
        background: white !important;
        color: black !important;
        border: 1px solid #ccc !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .booking-steps,
    .booking-form-container,
    .info-sidebar {
        border-width: 2px;
        border-color: white;
    }

    .form-control-modern,
    .time-btn,
    .info-item {
        border-width: 2px;
    }

    .step-number {
        border-width: 3px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .form-step,
    .step-number,
    .time-btn,
    .info-item,
    .form-control-modern {
        transition: none !important;
        animation: none !important;
    }
}

/* Focus Styles for Accessibility */
.form-control-modern:focus,
.time-btn:focus,
.form-check-input:focus,
button:focus {
    outline: 2px solid #DC143C;
    outline-offset: 2px;
}

/* Skip to Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #DC143C;
    color: white;
    padding: 8px;
    border-radius: 4px;
    text-decoration: none;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}