/* css/booking.css */

.booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.booking-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.booking-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.booking-modal__content {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background-color: #111111; /* Fallback to standard black if var is missing */
    border: 1px solid #333333;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.booking-modal.active .booking-modal__content {
    transform: translateY(0);
}

.booking-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #333333;
    background-color: #1a1a1a;
}

.booking-modal__header h2 {
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0;
    font-weight: 700;
}

.booking-modal__close {
    background: none;
    border: none;
    color: #a0a0a0;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.booking-modal__body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.booking-section {
    margin-bottom: 2rem;
}

.booking-section h3 {
    font-size: 1.1rem;
    color: #d4af37;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Service Summary */
.service-summary-card {
    background-color: #1a1a1a;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #333333;
}

.service-summary-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.service-summary-details {
    display: flex;
    gap: 0.5rem;
    color: #a0a0a0;
    font-size: 0.95rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 6px;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary, #d10405);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

/* Time Slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.8rem;
}

.time-slot input {
    display: none;
}

.time-slot span {
    display: block;
    text-align: center;
    padding: 0.6rem;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 6px;
    color: #a0a0a0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-slot input:checked + span {
    background-color: var(--primary, #d10405);
    color: #ffffff;
    border-color: var(--primary, #d10405);
    font-weight: 700;
}

/* Capster */
.capster-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.capster-item input {
    display: none;
}

.capster-item__info {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.capster-item__status-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.capster-item__text {
    flex: 1;
}

.capster-item__name {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.capster-item__status {
    font-size: 0.85rem;
    color: #a0a0a0;
}

.capster-item input:checked + .capster-item__info {
    border-color: var(--primary, #d10405);
    box-shadow: 0 0 0 1px var(--primary, #d10405);
}

.capster-item--booked .capster-item__info {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #111;
}

/* Payment */
.payment-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

@media (min-width: 480px) {
    .payment-methods {
        grid-template-columns: 1fr 1fr;
    }
}

.payment-method input {
    display: none;
}

.payment-method span {
    display: block;
    text-align: center;
    padding: 1rem;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 6px;
    color: #a0a0a0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-method input:checked + span {
    background-color: var(--primary, #d10405);
    color: #ffffff;
    border-color: var(--primary, #d10405);
    font-weight: 700;
}

.transfer-info, .cash-info {
    background-color: rgba(212, 175, 55, 0.05);
    border: 1px dashed #d4af37;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.transfer-info__title {
    color: #ffffff;
    margin-bottom: 1rem;
}

.transfer-details {
    background-color: #1a1a1a;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.transfer-detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #a0a0a0;
}

.transfer-detail-row:last-child {
    margin-bottom: 0;
}

.transfer-detail-row strong {
    color: #ffffff;
}

.upload-group input[type="file"] {
    display: none;
}

.upload-group label {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    color: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.upload-group label:hover {
    border-color: var(--primary, #d10405);
}

.upload-filename {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #a0a0a0;
    text-align: center;
}

/* Actions & Buttons */
.form-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.form-actions--split {
    justify-content: space-between;
}

.btn-summary, .btn-confirm, .btn-done {
    background-color: var(--primary, #d10405);
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-summary:hover, .btn-confirm:hover, .btn-done:hover {
    background-color: var(--primary-hover, #a00304);
}

.btn-back {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #333333;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background-color: #1a1a1a;
    border-color: var(--primary, #d10405);
}

/* Summary */
.summary-details {
    background-color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #333333;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.8rem;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid #333333;
    color: #a0a0a0;
}

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

.summary-row strong {
    color: #ffffff;
    text-align: right;
}

.status-badge {
    background-color: rgba(212, 175, 55, 0.1);
    color: #d4af37 !important;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Success */
.booking-success {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.success-icon span {
    font-size: 5rem;
}

.booking-success h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.booking-success p {
    color: #a0a0a0;
    margin-bottom: 1.5rem;
}

.success-summary {
    background-color: #1a1a1a;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: left;
}

.success-note {
    font-size: 0.85rem;
    font-style: italic;
    color: #d4af37 !important;
}

.hidden {
    display: none !important;
}

.form-error {
    color: #ff5252;
    background-color: rgba(255, 82, 82, 0.1);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    text-align: center;
    border: 1px solid rgba(255, 82, 82, 0.3);
}
