/* ===== GENERAL STYLES ===== */
body {
    background-color: #f4f4f4;
    color: #1d2434;
    font-family: Arial, sans-serif;
}

body.modal-open {
    overflow-y: auto !important;
    padding-right: 0 !important;
}

.modal {
    padding-right: 0 !important;
}

/* ===== RESERVATION CONTAINER ===== */
.reservation-container {
    background-color: #f4f4f4;
    min-height: 100vh;
    padding: 80px 0;
}

.reservation-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== CALENDAR STYLES ===== */
.calendar-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.calendar-nav {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #c6a16e;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav:hover {
    background: #c6a16e;
    color: white;
}

.calendar-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1d2434;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-top: 10px;
}

.calendar-day-header {
    text-align: center;
    font-weight: bold;
    color: #666;
    padding: 5px 2px;
    font-size: 0.8rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 1.2rem;
    padding: 4px;
}

.calendar-day:hover {
    background: #c6a16e;
    color: white;
}

.calendar-day.disabled {
    color: #ccc;
    cursor: not-allowed;
    background: #f8f9fa;
}

.calendar-day.disabled:hover {
    background: #f8f9fa;
    color: #ccc;
}

.calendar-day.selected {
    background: #c6a16e;
    color: white;
}

/* ===== TIME SLOTS ===== */
#time-container {
    margin-top: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.time-slots {
    width: 100%;
}

.time-slot {
    width: 100%;
    padding: 13px 18px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    height: 42px;
    color: black;
}

.time-slot:hover {
    border-color: #c6a16e;
    box-shadow: 0 0 0 0.2rem rgba(198, 161, 110, 0.25);
}

.time-slot:focus {
    border-color: #c6a16e;
    box-shadow: 0 0 0 0.2rem rgba(198, 161, 110, 0.25);
    outline: none;
}

.time-slot option {
    padding: 10px;
    font-size: 1rem;
}

.time-slot option:hover {
    background-color: #f8f9fa;
}

.no-slots-message {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 12px;
    margin-top: -12px;
    margin-bottom: -12px;
}

.no-slots-message i {
    font-size: 2rem;
    color: #c6a16e;
    margin-bottom: 8px;
}

/* ===== FORM STYLES ===== */
.form-container {
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    font-weight: 600;
    color: #1d2434;
    margin-bottom: 8px;
    display: block;
    font-size: 1.2rem;
}

.form-control,
.form-select {
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    height: 42px;
}

.form-control:focus,
.form-select:focus {
    border-color: #c6a16e;
    box-shadow: 0 0 0 0.2rem rgba(198, 161, 110, 0.25);
    outline: none;
}

.selected-datetime {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 13px 17px;
    font-size: 1rem;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    height: 42px;
    color: #1d2434;
}

/* ===== CUSTOM DROPDOWN ===== */
.custom-dropdown {
    position: relative;
    width: 100%;
    user-select: none;
}

.dropdown-selected {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 10px 17px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    min-height: 42px;
}

.dropdown-selected:hover {
    border-color: #c6a16e;
    box-shadow: 0 0 0 0.25rem rgba(198, 161, 110, 0.15);
}

.dropdown-selected.active {
    border-color: #c6a16e;
    box-shadow: 0 0 0 0.25rem rgba(198, 161, 110, 0.25);
}

.placeholder {
    color: #6c757d;
    font-size: 1rem;
}

.dropdown-selected.has-value .placeholder {
    color: #212529;
}

.arrow {
    transition: transform 0.3s ease;
    font-size: 10px;
    color: #6c757d;
    margin-left: 8px;
}

.dropdown-selected.active .arrow {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-top: 4px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dropdown-options.show {
    display: block;
    animation: slideDown 0.2s ease;
}

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

.dropdown-option {
    padding: 12px 17px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
    position: relative;
}

.dropdown-option:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-option:hover {
    background-color: #f8f9fa;
    border-left-color: #c6a16e;
}

.dropdown-option.selected {
    background-color: #faf7f3;
    border-left-color: #c6a16e;
}

.option-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.option-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.option-name {
    font-size: 1rem;
    color: #1d2434;
    line-height: 1.3;
}

.option-time {
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 4px;
}

.option-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.option-price {
    font-size: 1rem;
    color: #1d2434;
    font-weight: 550;
    white-space: nowrap;
}

.option-check {
    color: #c6a16e;
    font-size: 16px;
    visibility: hidden;
}

.dropdown-option.selected .option-check {
    visibility: visible;
}

.dropdown-options::-webkit-scrollbar {
    width: 8px;
}

.dropdown-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.dropdown-options::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.dropdown-options::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ===== BOOKING SECTIONS ===== */
.booking-section {
    margin-bottom: 20px;
}

.booking-section-title {
    font-weight: 600;
    color: #1d2434;
    margin-bottom: 15px;
    font-size: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

/* ===== POIN CARD ===== */
.poin-card {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.poin-section {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 14px;
    transition: all 0.2s ease;
}

.poin-section:hover {
    background-color: #f8f9fa;
}

.poin-section .poin-info {
    font-size: 12px;
    color: #6c757d;
}

.poin-section .poin-label {
    font-weight: 500;
    font-size: 14px;
    color: #212529;
}

/* ===== PAYMENT OPTIONS ===== */
.payment-option {
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    margin-bottom: 12px !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-option:hover {
    border-color: #c6a16e !important;
    background: #f8f9fa !important;
}

.payment-option label {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    cursor: pointer;
}

.payment-option input[type="radio"] {
    margin-right: 12px !important;
    transform: scale(1.1) !important;
    cursor: pointer;
}

.payment-option div {
    flex-grow: 1 !important;
}

.payment-option .fw-bold {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #1d2434 !important;
    margin-bottom: 2px !important;
    line-height: 1.3 !important;
}

.payment-option small {
    font-size: 0.85rem !important;
    color: #6c757d !important;
    line-height: 1.4 !important;
}

.payment-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fw-bold {
    margin-bottom: 2px;
}

/* ===== CAPSTER DROPDOWN ===== */
.custom-dropdown#customDropdownCapster {
    position: relative;
    width: 100%;
    user-select: none;
}

.dropdown-selected-capster {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 10px 17px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    min-height: 42px;
}

.dropdown-selected-capster:hover {
    border-color: #c6a16e;
    box-shadow: 0 0 0 0.25rem rgba(198, 161, 110, 0.15);
}

.dropdown-selected-capster.active {
    border-color: #c6a16e;
    box-shadow: 0 0 0 0.25rem rgba(198, 161, 110, 0.25);
}

.dropdown-selected-capster.active .arrow {
    transform: rotate(180deg);
}

.dropdown-selected-capster.has-value .placeholder {
    color: #212529;
}

.dropdown-options-capster {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dropdown-options-capster.show {
    display: block;
    animation: slideDown 0.2s ease;
}

.dropdown-option-capster {
    padding: 10px 17px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.dropdown-option-capster:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-option-capster:hover {
    background-color: #f8f9fa;
    border-left-color: #c6a16e;
}

.dropdown-option-capster.selected {
    background-color: #faf7f3;
    border-left-color: #c6a16e;
}

.capster-option-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.capster-photo-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #f0f0f0;
}

.capster-photo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.capster-info-dropdown {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.capster-name-dropdown {
    font-size: 14px;
    font-weight: 600;
    color: #1d2434;
}

.capster-details-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: #6c757d;
}

.capster-rating-small {
    display: flex;
    align-items: center;
    gap: 3px;
}

.capster-rating-small i {
    color: #ffc107;
}

.capster-time-small {
    display: flex;
    align-items: center;
    gap: 3px;
}

.capster-time-small i {
    color: #c6a16e;
}

.option-check-capster {
    color: #c6a16e;
    font-size: 16px;
    visibility: hidden;
    flex-shrink: 0;
}

.dropdown-option-capster.selected .option-check-capster {
    visibility: visible;
}

.dropdown-options-capster::-webkit-scrollbar {
    width: 6px;
}

.dropdown-options-capster::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.dropdown-options-capster::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.dropdown-options-capster::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ===== DETAIL RESERVASI BOX ===== */
.detail-reservasi-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.detail-item:not(:last-child) {
    border-bottom: 1px solid #e9ecef;
}

.detail-label {
    font-weight: 600;
    color: #6c757d;
    font-size: 14px;
}

.detail-value {
    font-weight: 500;
    color: #1d2434;
    font-size: 14px;
    text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
    .capster-photo-small {
        width: 35px;
        height: 35px;
    }
    
    .capster-name-dropdown {
        font-size: 13px;
    }
    
    .capster-details-dropdown {
        font-size: 10px;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 10px 0;
    }
    
    .detail-value {
        text-align: left;
    }
}

/* ===== BUTTONS ===== */
.btn-custom {
    background: #c6a16e;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-custom:hover {
    background: #b78f59;
}

.btn-custom:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.btn-outline-secondary {
    background: transparent;
    border: 1px solid #6c757d;
    color: #6c757d;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    align-items: center;
    padding-bottom: 25px;
}

#step2 .btn-custom {
    width: auto;
}

#step2 .btn-outline-secondary {
    width: auto;
}

/* ===== ALERTS ===== */
.alert-custom {
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: none;
    font-size: 12px;
    display: flex;
    align-items: center;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-success .alert-link {
    color: #0f5132;
    font-weight: bold;
    text-decoration: underline !important;
}

.alert-success .alert-link:hover {
    color: #0c4128;
    text-decoration: none !important;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-danger div .alert-link {
    color: #721c24 !important;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.alert-danger .alert-link:hover {
    color: #721c24 !important;
    text-decoration: none !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .calendar-grid {
        gap: 2px;
    }

    .calendar-day {
        font-size: 0.8rem;
    }

    .time-slots {
        max-height: 200px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-col {
        margin-bottom: 15px;
    }
}