/* Booking Page Styles */

/* Main Layout */
.booking-main {
    min-height: 100vh;
    padding: 6rem 0 2rem;
    position: relative;
    z-index: 10;
}

.booking-header {
    text-align: center;
    margin-bottom: 4rem;
}

.booking-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: bold;
    color: var(--matrix-green);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.booking-subtitle {
    font-size: 1.25rem;
    color: var(--gray-300);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Booking Content */
.booking-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.booking-section {
    background: rgba(0, 20, 0, 0.8);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--matrix-green);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Service Types */
.service-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.service-type {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(0, 255, 65, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-type:hover {
    border-color: var(--matrix-green);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.2);
}

.service-type.selected {
    border-color: var(--matrix-green);
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.service-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--matrix-green), transparent);
    transition: left 0.5s ease;
}

.service-type.selected::before {
    left: 100%;
}

.service-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--matrix-green), var(--cyber-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-name {
    font-size: 1.125rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.service-description {
    color: var(--gray-300);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.service-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.service-duration {
    color: var(--cyber-blue);
    font-weight: 500;
}

.service-price {
    color: var(--matrix-green);
    font-weight: bold;
}

/* Calendar */
.calendar-container {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

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

.calendar-nav {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 8px;
    padding: 0.5rem;
    color: var(--matrix-green);
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-nav:hover {
    background: rgba(0, 255, 65, 0.2);
    border-color: var(--matrix-green);
}

.calendar-nav .icon {
    width: 1.25rem;
    height: 1.25rem;
}

.calendar-month {
    font-size: 1.25rem;
    font-weight: bold;
    color: #ffffff;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: rgba(0, 255, 65, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.calendar-day {
    background: rgba(0, 0, 0, 0.6);
    padding: 1rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.calendar-day.header {
    background: rgba(0, 255, 65, 0.2);
    color: var(--matrix-green);
    font-weight: bold;
    font-size: 0.875rem;
    cursor: default;
    min-height: 40px;
}

.calendar-day.other-month {
    color: var(--gray-400);
    opacity: 0.5;
}

.calendar-day.disabled {
    color: var(--gray-400);
    cursor: not-allowed;
    opacity: 0.3;
}

.calendar-day.available:hover {
    background: rgba(0, 255, 65, 0.2);
    color: var(--matrix-green);
}

.calendar-day.selected {
    background: var(--matrix-green);
    color: #000;
    font-weight: bold;
}

.calendar-day.today {
    border: 2px solid var(--cyber-blue);
}

/* Time Slots */
.time-slots-container {
    margin-top: 2rem;
}

.time-slots-title {
    font-size: 1.125rem;
    font-weight: bold;
    color: var(--matrix-green);
    margin-bottom: 1rem;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.time-slot {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    color: #ffffff;
}

.time-slot:hover {
    border-color: var(--matrix-green);
    background: rgba(0, 255, 65, 0.1);
}

.time-slot.selected {
    background: var(--matrix-green);
    color: #000;
    border-color: var(--matrix-green);
}

.time-slot.unavailable {
    opacity: 0.5;
    cursor: not-allowed;
    color: var(--gray-400);
}

/* Booking Form */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group label {
    color: var(--matrix-green);
    font-weight: 500;
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--matrix-green);
    box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.1);
    background: rgba(0, 20, 0, 0.8);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

/* Booking Summary */
.booking-summary {
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.booking-summary h3 {
    color: var(--matrix-green);
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

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

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

.summary-label {
    color: var(--gray-300);
    font-weight: 500;
}

.summary-value {
    color: #ffffff;
    font-weight: bold;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--matrix-green), var(--cyber-blue));
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 255, 65, 0.3);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.6);
    color: var(--matrix-green);
    border: 1px solid rgba(0, 255, 65, 0.3);
}

.btn-secondary:hover {
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--matrix-green);
}

.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(0, 20, 0, 0.95);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    backdrop-filter: blur(20px);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.success-icon {
    width: 4rem;
    height: 4rem;
    background: var(--matrix-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.success-icon .icon {
    width: 2rem;
    height: 2rem;
    color: #000;
}

.modal-header h2 {
    color: var(--matrix-green);
    font-size: 1.5rem;
    font-weight: bold;
}

.modal-body p {
    color: var(--gray-300);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.confirmation-details {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    padding: 1rem;
}

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

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

.detail-item strong {
    color: var(--matrix-green);
}

.detail-item span {
    color: #ffffff;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .booking-main {
        padding: 5rem 1rem 2rem;
    }
    
    .booking-section {
        padding: 1.5rem;
    }
    
    .service-types {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .calendar-day {
        min-height: 50px;
        padding: 0.5rem 0.25rem;
        font-size: 0.875rem;
    }
    
    .time-slots {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .booking-title {
        font-size: 2rem;
    }
    
    .booking-subtitle {
        font-size: 1rem;
    }
    
    .calendar-grid {
        gap: 0;
    }
    
    .calendar-day {
        min-height: 40px;
        font-size: 0.75rem;
    }
    
    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Loading States */
.btn-primary.loading,
.btn-secondary.loading {
    position: relative;
    color: transparent;
}

.btn-primary.loading::after,
.btn-secondary.loading::after {
    content: '';
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

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

.booking-section {
    animation: fadeInUp 0.6s ease forwards;
}

.booking-section:nth-child(2) {
    animation-delay: 0.1s;
}

.booking-section:nth-child(3) {
    animation-delay: 0.2s;
}

/* Accessibility */
.service-type:focus-visible,
.calendar-day:focus-visible,
.time-slot:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
    outline: 2px solid var(--matrix-green);
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .booking-section {
        border-width: 2px;
        background: rgba(0, 0, 0, 0.95);
    }
    
    .service-type {
        border-width: 2px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        border-width: 2px;
    }
}