/*
 * Booking Page Styles
 * 3B Hotels Rwanda
 */

/* ============================================
   Booking Section
   ============================================ */
.booking-section {
    background-color: #f8f8f8;
}

/* ============================================
   Progress Steps
   ============================================ */
.booking-progress-wrapper {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.booking-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

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

.progress-step .step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #e9e9e9;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.progress-step .step-icon i {
    font-size: 24px;
    color: #888;
    transition: all 0.3s ease;
}

.progress-step .step-label {
    font-size: 14px;
    font-weight: 500;
    color: #888;
    text-align: center;
    transition: all 0.3s ease;
}

.progress-step.active .step-icon,
.progress-step.completed .step-icon {
    background-color: var(--gt-theme);
}

.progress-step.active .step-icon i,
.progress-step.completed .step-icon i {
    color: #fff;
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
    color: var(--gt-theme);
    font-weight: 600;
}

.progress-line {
    width: 80px;
    height: 3px;
    background-color: #e9e9e9;
    margin: 0 10px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.progress-line.active {
    background-color: var(--gt-theme);
}

@media (max-width: 991px) {
    .booking-progress {
        flex-wrap: wrap;
        gap: 15px;
    }

    .progress-line {
        display: none;
    }

    .progress-step .step-icon {
        width: 50px;
        height: 50px;
    }

    .progress-step .step-icon i {
        font-size: 20px;
    }

    .progress-step .step-label {
        font-size: 12px;
    }
}

@media (max-width: 575px) {
    .booking-progress-wrapper {
        padding: 20px 15px;
    }

    .progress-step {
        flex: 0 0 18%;
    }

    .progress-step .step-icon {
        width: 40px;
        height: 40px;
    }

    .progress-step .step-icon i {
        font-size: 16px;
    }

    .progress-step .step-label {
        font-size: 10px;
    }
}

/* ============================================
   Booking Steps
   ============================================ */
.booking-step {
    display: none;
}

.booking-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

/* ============================================
   Form Cards
   ============================================ */
.booking-form-card,
.booking-summary-card,
.cancellation-policy-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.booking-form-card .card-header,
.booking-summary-card .card-header,
.cancellation-policy-card .card-header {
    background: var(--gt-header);
    color: #fff;
    padding: 20px 25px;
}

.booking-form-card .card-header h3 {
    font-size: 22px;
    margin: 0;
    color: #fff;
    font-family: "Gilda Display", sans-serif;
}

.booking-summary-card .card-header h4,
.cancellation-policy-card .card-header h4 {
    font-size: 18px;
    margin: 0;
    color: #fff;
    font-family: "Gilda Display", sans-serif;
}

.booking-form-card .card-body,
.booking-summary-card .card-body,
.cancellation-policy-card .card-body {
    padding: 25px;
}

/* ============================================
   Form Elements
   ============================================ */
.form-label {
    font-weight: 500;
    color: var(--gt-header);
    margin-bottom: 8px;
    font-size: 14px;
}

.booking-input,
.booking-select {
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 15px;
    transition: all 0.3s ease;
    width: 100%;
}

.booking-input:focus,
.booking-select:focus {
    border-color: var(--gt-theme);
    box-shadow: 0 0 0 3px rgba(170, 132, 83, 0.15);
    outline: none;
}

.booking-input::placeholder {
    color: #999;
}

textarea.booking-input {
    height: auto;
    min-height: 120px;
    resize: vertical;
}

.form-section-title {
    font-size: 18px;
    color: var(--gt-header);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gt-theme);
    font-family: "Gilda Display", sans-serif;
}

/* ============================================
   Booking Summary
   ============================================ */
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

.summary-item .label {
    font-weight: 500;
    color: #666;
    font-size: 14px;
}

.summary-item .value {
    font-weight: 600;
    color: var(--gt-header);
    text-align: right;
    font-size: 14px;
    max-width: 60%;
}

.summary-item.total {
    padding: 15px 0;
}

.summary-item.total .label,
.summary-item.total .value {
    font-size: 16px;
}

.summary-item.highlight {
    background: #f8f5f0;
    margin: 10px -25px;
    padding: 15px 25px;
}

.summary-item.highlight .label,
.summary-item.highlight .value {
    color: var(--gt-theme);
    font-size: 18px;
}

.summary-note {
    font-size: 12px;
    color: #888;
    margin-top: 15px;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 4px;
}

.summary-note i {
    color: var(--gt-theme);
    margin-right: 5px;
}

/* ============================================
   Booking Navigation
   ============================================ */
.booking-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.booking-nav .gt-theme-btn {
    min-width: 180px;
}

.booking-nav .gt-border-style {
    background: transparent;
    border: 2px solid var(--gt-theme);
    color: var(--gt-theme);
}

.booking-nav .gt-border-style:hover {
    background: var(--gt-theme);
    color: #fff;
}

.booking-nav .gt-border-style::before {
    background-color: var(--gt-theme);
}

@media (max-width: 575px) {
    .booking-nav {
        flex-direction: column;
    }

    .booking-nav .gt-theme-btn {
        width: 100%;
    }
}

/* ============================================
   Availability Results
   ============================================ */
.availability-checking {
    text-align: center;
    padding: 40px;
}

.availability-checking .spinner-border {
    width: 50px;
    height: 50px;
    color: var(--gt-theme);
}

.availability-checking p {
    margin-top: 15px;
    color: #666;
}

.availability-success,
.availability-error {
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.availability-success {
    background: #e8f5e9;
    border: 1px solid #4caf50;
}

.availability-success i {
    font-size: 50px;
    color: #4caf50;
    margin-bottom: 15px;
}

.availability-success h4 {
    color: #2e7d32;
    margin-bottom: 10px;
}

.availability-error {
    background: #ffebee;
    border: 1px solid #f44336;
}

.availability-error i {
    font-size: 50px;
    color: #f44336;
    margin-bottom: 15px;
}

.availability-error h4 {
    color: #c62828;
    margin-bottom: 10px;
}

/* Selected Room Preview */
.selected-room-preview {
    background: #f8f5f0;
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
}

.room-preview-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.room-preview-image {
    width: 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
}

.room-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-preview-info h4 {
    color: var(--gt-theme);
    margin-bottom: 5px;
}

.room-preview-info h3 {
    margin-bottom: 10px;
}

.room-preview-info .price {
    font-size: 24px;
    font-weight: 700;
    color: var(--gt-theme);
}

.room-preview-info .price span {
    font-size: 14px;
    font-weight: 400;
    color: #666;
}

.room-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.room-amenities span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.room-amenities span i {
    color: var(--gt-theme);
}

@media (max-width: 575px) {
    .room-preview-header {
        flex-direction: column;
    }

    .room-preview-image {
        width: 100%;
        height: 200px;
    }
}

/* ============================================
   Payment Methods
   ============================================ */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

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

.payment-method-option {
    position: relative;
}

.payment-method-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.payment-method-option label {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method-option label i {
    font-size: 24px;
    color: #888;
    width: 30px;
    text-align: center;
}

.payment-method-option label span {
    font-weight: 500;
    color: var(--gt-header);
}

.payment-method-option label .card-icons {
    margin-left: auto;
    display: flex;
    gap: 5px;
}

.payment-method-option label .card-icons i {
    font-size: 28px;
    width: auto;
}

.payment-method-option input[type="radio"]:checked + label {
    border-color: var(--gt-theme);
    background: #f8f5f0;
}

.payment-method-option input[type="radio"]:checked + label i {
    color: var(--gt-theme);
}

/* Payment Forms */
.payment-form {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.bank-details-box {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--gt-theme);
}

.bank-details-box p {
    margin-bottom: 8px;
}

.bank-details-box p:last-child {
    margin-bottom: 0;
}

.payment-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.payment-list li {
    padding: 8px 0;
}

.payment-list li i {
    color: var(--gt-theme);
    margin-right: 10px;
}

.text-warning {
    color: #ff9800 !important;
}

/* Checkbox Styles */
.booking-checkbox {
    margin-bottom: 10px;
}

.booking-checkbox .form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 0;
    cursor: pointer;
}

.booking-checkbox .form-check-input:checked {
    background-color: var(--gt-theme);
    border-color: var(--gt-theme);
}

.booking-checkbox .form-check-label {
    margin-left: 10px;
    cursor: pointer;
    font-size: 14px;
}

.terms-link {
    color: var(--gt-theme);
    text-decoration: underline;
}

.terms-link:hover {
    color: var(--gt-header);
}

/* ============================================
   Confirmation Page
   ============================================ */
.confirmation-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 50px;
}

.confirmation-icon {
    margin-bottom: 25px;
}

.confirmation-icon i {
    font-size: 80px;
    color: #4caf50;
}

.confirmation-card h2 {
    color: var(--gt-header);
    margin-bottom: 15px;
}

.confirmation-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.confirmation-message span {
    font-weight: 600;
    color: var(--gt-theme);
}

.booking-reference {
    background: #f8f5f0;
    padding: 20px 30px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 30px;
}

.booking-reference .label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.booking-reference .reference-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--gt-theme);
    font-family: "Gilda Display", sans-serif;
    letter-spacing: 2px;
}

.confirmation-details {
    text-align: left;
    margin: 30px 0;
}

.detail-box {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    height: 100%;
}

.detail-box h5 {
    color: var(--gt-theme);
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-family: "Barlow", sans-serif;
    font-weight: 600;
}

.detail-box p {
    margin-bottom: 5px;
    color: var(--gt-header);
}

.detail-box .total-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--gt-theme);
}

.confirmation-info {
    text-align: left;
    background: #f8f5f0;
    padding: 25px;
    border-radius: 8px;
}

.confirmation-info h5 {
    margin-bottom: 15px;
    color: var(--gt-header);
}

.confirmation-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.confirmation-info ul li {
    padding: 8px 0;
    border-bottom: 1px solid #e0dcd5;
}

.confirmation-info ul li:last-child {
    border-bottom: none;
}

.confirmation-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

@media (max-width: 575px) {
    .confirmation-card {
        padding: 30px 20px;
    }

    .confirmation-icon i {
        font-size: 60px;
    }

    .booking-reference .reference-number {
        font-size: 22px;
    }

    .confirmation-actions .gt-theme-btn {
        width: 100%;
        margin: 0;
    }
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 991px) {
    .booking-summary-card {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .booking-form-card .card-body,
    .booking-summary-card .card-body {
        padding: 20px;
    }

    .booking-form-card .card-header h3 {
        font-size: 18px;
    }
}

/* ============================================
   Nice Select Override for Booking Page
   ============================================ */
.booking-section .nice-select {
    height: 50px;
    line-height: 48px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    width: 100%;
}

.booking-section .nice-select:focus {
    border-color: var(--gt-theme);
}

.booking-section .nice-select .list {
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
}

.booking-section .nice-select .option:hover,
.booking-section .nice-select .option.focus,
.booking-section .nice-select .option.selected.focus {
    background-color: #f8f5f0;
}

.booking-section .nice-select .option.selected {
    font-weight: 600;
}
