/* Al Mazham Farm Booking System - Styles */
/* Matching Hinat Tours UI/UX */

.almazham-booking-wrapper {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0rem;
}

.almazham-booking-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.almazham-form-title {
    font-size: 2rem;
    font-weight: 400;
    color: #4A3425;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.almazham-form-description {
    font-size: 1.1rem;
    color: #6B5D4F;
    line-height: 1.6;
}

/* Progress Bar */
.almazham-progress-bar {
    width: 100%;
    height: 4px;
    background: #F4E8D8;
    border-radius: 2px;
    margin-bottom: 2.5rem;
    overflow: hidden;
}

.almazham-progress-fill {
    height: 100%;
    background: #C97B5C;
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 20%;
}

/* Form Steps */
.almazham-form-step {
    display: none;
    animation: fadeInStep 0.5s ease;
}

.almazham-form-step.active {
    display: block;
}

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

.almazham-step-title {
    font-size: 1.6rem;
    font-weight: 500;
    color: #4A3425;
    margin-bottom: 0.5rem;
}

.almazham-step-description {
    color: #6B5D4F;
    margin-bottom: 2rem;
    font-style: italic;
}

/* Form Groups */
.almazham-form-group {
    margin-bottom: 1.5rem;
}

.almazham-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4A3425;
    font-weight: 500;
}

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

/* Input Fields */
.almazham-input,
.almazham-select,
.almazham-textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #D4B896;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: #ffffff;
}

.almazham-input:focus,
.almazham-select:focus,
.almazham-textarea:focus {
    outline: none;
    border-color: #C97B5C;
}

.almazham-textarea {
    resize: vertical;
    min-height: 100px;
}

.almazham-select-small {
    padding: 0.5rem;
    border: 2px solid #D4B896;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #ffffff;
}

/* Room Selection Grid */
.almazham-room-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.almazham-room-option {
    position: relative;
}

.almazham-room-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.almazham-room-label {
    display: block;
    padding: 1.5rem;
    background: #F4E8D8;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.almazham-room-label:hover {
    background: #E8D4B8;
    transform: translateY(-2px);
}

.almazham-room-option input[type="radio"]:checked + .almazham-room-label {
    background: #ffffff;
    border-color: #C97B5C;
    box-shadow: 0 4px 12px rgba(201, 123, 92, 0.2);
}

.almazham-room-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.almazham-room-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4A3425;
}

.almazham-room-price {
    text-align: right;
    color: #C97B5C;
    font-weight: 600;
}

.almazham-room-price .price-note {
    font-size: 0.75rem;
    color: #6B5D4F;
    font-weight: 400;
}

/* Room Availability Badge */
.almazham-room-availability {
    margin-bottom: 0.75rem;
}

.availability-badge {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.availability-badge.available {
    background: #D4EDDA;
    color: #155724;
}

.availability-badge.low {
    background: #FFF3CD;
    color: #856404;
}

.availability-badge.sold-out {
    background: #F8D7DA;
    color: #721C24;
}

.almazham-room-option.sold-out-option .almazham-room-label {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.almazham-room-description {
    color: #6B5D4F;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.almazham-room-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: rgba(201, 123, 92, 0.15);
    color: #8B5A3C;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Services Grid */
.almazham-services-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.almazham-service-option {
    background: #F9F6F2;
    border-radius: 10px;
    padding: 1rem;
}

.almazham-service-checkbox {
    position: relative;
}

.almazham-service-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.almazham-service-label {
    display: block;
    padding: 0.75rem;
    background: #F4E8D8;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.almazham-service-label:hover {
    background: #E8D4B8;
}

.almazham-service-checkbox input[type="checkbox"]:checked + .almazham-service-label {
    background: #ffffff;
    border-color: #C97B5C;
}

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

.service-name {
    font-weight: 600;
    color: #4A3425;
}

.service-price {
    color: #C97B5C;
    font-weight: 600;
}

.service-description {
    color: #6B5D4F;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.service-note {
    color: #999;
    font-size: 0.8rem;
    font-style: italic;
}

.service-quantity {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #E8D4B8;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-quantity label {
    color: #6B5D4F;
    font-size: 0.9rem;
}

/* Stay Summary */
.almazham-stay-summary {
    background: #F9F6F2;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.summary-title {
    font-weight: 600;
    color: #4A3425;
    margin-bottom: 0.75rem;
}

/* Booking Summary (Review Step) */
.almazham-booking-summary {
    background: #F9F6F2;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.summary-section {
    margin-bottom: 1.25rem;
}

.summary-section:last-child {
    margin-bottom: 0;
}

.summary-section-title {
    font-weight: 600;
    color: #4A3425;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #E8D4B8;
}

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

.summary-label {
    color: #6B5D4F;
}

.summary-value {
    color: #4A3425;
    font-weight: 500;
}

/* Pricing Summary */
.almazham-pricing-summary {
    background: #ffffff;
    border: 2px solid #D4B896;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: #6B5D4F;
}

.pricing-row.total {
    border-top: 2px solid #D4B896;
    margin-top: 0.75rem;
    padding-top: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #4A3425;
}

.pricing-row.total .pricing-value {
    color: #C97B5C;
}

/* Important Notice */
.almazham-important-notice {
    display: flex;
    gap: 1rem;
    background: #FFF9E6;
    border-left: 4px solid #D4AF37;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.notice-icon {
    font-size: 1.25rem;
}

.notice-content {
    color: #6B5D4F;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Form Navigation */
.almazham-form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #D4B896;
}

/* Buttons */
.almazham-btn {
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.almazham-btn-next,
.almazham-btn-submit {
    background: #C97B5C;
    color: #ffffff;
}

.almazham-btn-next:hover,
.almazham-btn-submit:hover {
    background: #4A3425;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.almazham-btn-back {
    background: transparent;
    color: #4A3425;
    border: 2px solid #D4B896;
}

.almazham-btn-back:hover {
    border-color: #C97B5C;
    color: #C97B5C;
}

/* Form Footer */
.almazham-form-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #999;
    font-size: 0.85rem;
}

/* Loading State */
.almazham-form-loading {
    text-align: center;
    padding: 3rem;
}

.almazham-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    border: 4px solid #F4E8D8;
    border-top-color: #C97B5C;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.almazham-form-loading p {
    color: #6B5D4F;
    font-size: 1.1rem;
}

/* Success State */
.almazham-booking-success {
    text-align: center;
}

.almazham-booking-success .success-icon {
    width: 80px;
    height: 80px;
    background: #27AE60;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
}

.almazham-booking-success h3 {
    font-size: 1.75rem;
    color: #4A3425;
    margin-bottom: 0.5rem;
}

.booking-ref-label {
    color: #6B5D4F;
    margin-bottom: 0.5rem;
}

.booking-reference {
    background: #F4E8D8;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4A3425;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

/* Payment Instructions */
.payment-instructions {
    background: #F9F6F2;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.payment-instructions h4 {
    color: #4A3425;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.payment-instructions > p {
    color: #6B5D4F;
    margin-bottom: 1rem;
}

.total-amount {
    background: #C97B5C;
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
}

.bank-details {
    background: #ffffff;
    border: 2px solid #D4B896;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.bank-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #F4E8D8;
}

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

.detail-label {
    color: #6B5D4F;
    font-weight: 500;
}

.detail-value {
    color: #4A3425;
    font-weight: 600;
    font-family: monospace;
    font-size: 0.95rem;
}

.payment-note {
    background: #FFF9E6;
    border-left: 4px solid #D4AF37;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    color: #6B5D4F;
}

/* Payment Confirmation Form */
.payment-confirmation-form {
    background: #ffffff;
    border: 2px solid #D4B896;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.payment-confirmation-form h4 {
    color: #4A3425;
    margin-bottom: 0.5rem;
}

.payment-confirmation-form > p {
    color: #6B5D4F;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.confirmation-email-notice {
    color: #27AE60;
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

/* Status Page Styles */
.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.booking-ref-display {
    font-size: 1.25rem;
    color: #4A3425;
}

.booking-ref-display span {
    font-weight: 700;
    font-family: monospace;
}

.status-badge {
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-badge.pending_payment {
    background: #FFF3CD;
    color: #856404;
}

.status-badge.payment_submitted {
    background: #CCE5FF;
    color: #004085;
}

.status-badge.booked {
    background: #D4EDDA;
    color: #155724;
}

.status-badge.cancelled {
    background: #F8D7DA;
    color: #721C24;
}

.booking-details-card,
.pricing-details-card {
    background: #F9F6F2;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.booking-details-card h4,
.pricing-details-card h4 {
    color: #4A3425;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.detail-item {
    padding: 0.5rem 0;
}

.detail-item .label {
    color: #6B5D4F;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.25rem;
}

.detail-item .value {
    color: #4A3425;
    font-weight: 500;
}

/* Status-specific sections */
.payment-instructions-status {
    background: #F9F6F2;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.payment-instructions-status h4 {
    color: #4A3425;
    margin-bottom: 0.75rem;
}

.payment-submitted-notice,
.confirmed-notice,
.cancelled-notice,
.error-notice {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.payment-submitted-notice {
    background: #CCE5FF;
}

.confirmed-notice {
    background: #D4EDDA;
}

.cancelled-notice {
    background: #F8D7DA;
}

.error-notice {
    background: #F8D7DA;
}

.payment-submitted-notice .notice-icon,
.confirmed-notice .notice-icon,
.cancelled-notice .notice-icon,
.error-notice .notice-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.payment-submitted-notice h4 {
    color: #004085;
}

.confirmed-notice h4 {
    color: #155724;
}

.cancelled-notice h4 {
    color: #721C24;
}

.error-notice h4 {
    color: #721C24;
}

.arrival-info {
    background: rgba(255,255,255,0.5);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: left;
}

.arrival-info p {
    margin: 0.25rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .almazham-booking-container {
        padding: 1.5rem;
    }

    .almazham-form-title {
        font-size: 1.5rem;
    }

    .almazham-form-description {
        font-size: 1rem;
    }

    .almazham-form-row {
        grid-template-columns: 1fr;
    }

    .almazham-room-header {
        flex-direction: column;
    }

    .almazham-room-price {
        text-align: left;
    }

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

    .almazham-btn {
        width: 100%;
    }

    .status-header {
        flex-direction: column;
        text-align: center;
    }

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

    .bank-detail-row {
        flex-direction: column;
        gap: 0.25rem;
    }

    .service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}
