/**
 * Kost Booking Engine - Stylesheet (v2)
 * ======================================
 * Support tampilan harga harian, mingguan, bulanan
 */

/* ======================
   CSS VARIABLES
   ====================== */
:root {
    --kost-primary: #2563eb;
    --kost-primary-hover: #1d4ed8;
    --kost-secondary: #64748b;
    --kost-success: #16a34a;
    --kost-error: #dc2626;
    --kost-warning: #f59e0b;
    --kost-bg: #f8fafc;
    --kost-card-bg: #ffffff;
    --kost-border: #e2e8f0;
    --kost-text: #1e293b;
    --kost-text-muted: #64748b;
    --kost-radius: 12px;
    --kost-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --kost-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* ======================
   RESULT CONTAINER
   ====================== */
.kost-results-container {
    margin-top: 30px;
    padding: 20px;
    background: var(--kost-bg);
    border-radius: var(--kost-radius);
}

/* ======================
   LOADING STATE
   ====================== */
.kost-loading {
    text-align: center;
    padding: 60px 20px;
}

.kost-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--kost-border);
    border-top-color: var(--kost-primary);
    border-radius: 50%;
    animation: kost-spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.kost-loading p {
    color: var(--kost-text-muted);
    font-size: 16px;
}

/* ======================
   ERROR STATE
   ====================== */
.kost-error {
    text-align: center;
    padding: 40px 20px;
    background: #fef2f2;
    border-radius: var(--kost-radius);
    border: 1px solid #fecaca;
}

.kost-error-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.kost-error p {
    color: var(--kost-error);
    font-size: 16px;
    margin-bottom: 20px;
}

/* ======================
   EMPTY STATE
   ====================== */
.kost-empty {
    text-align: center;
    padding: 60px 20px;
}

.kost-empty-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 20px;
}

.kost-empty h3 {
    font-size: 24px;
    color: var(--kost-text);
    margin-bottom: 10px;
}

.kost-empty p {
    color: var(--kost-text-muted);
}

/* ======================
   RESULTS HEADER
   ====================== */
.kost-results h3 {
    font-size: 24px;
    color: var(--kost-text);
    margin-bottom: 5px;
}

.kost-results-subtitle {
    color: var(--kost-text-muted);
    margin-bottom: 25px;
}

/* ======================
   ROOM GRID
   ====================== */
.kost-room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* ======================
   ROOM CARD
   ====================== */
.kost-room-card {
    background: var(--kost-card-bg);
    border-radius: var(--kost-radius);
    box-shadow: var(--kost-shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.kost-room-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--kost-shadow-lg);
}

.kost-room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--kost-primary), var(--kost-primary-hover));
    color: white;
}

.kost-room-code {
    font-size: 20px;
    font-weight: 700;
}

.kost-room-type {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
}

.kost-type-standard {
    background: rgba(255, 255, 255, 0.25);
}

.kost-type-deluxe {
    background: var(--kost-warning);
    color: #000;
}

.kost-type-vip {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
}

.kost-room-body {
    padding: 20px;
}

/* ======================
   ROOM PRICE - MAIN
   ====================== */
.kost-room-price {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--kost-border);
}

.kost-price-label {
    display: block;
    font-size: 12px;
    color: var(--kost-text-muted);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.kost-price-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--kost-primary);
}

/* ======================
   ROOM PRICE - ALL PRICES LIST
   ====================== */
.kost-room-all-prices {
    margin-bottom: 15px;
    padding: 12px;
    background: var(--kost-bg);
    border-radius: 8px;
}

.kost-prices-label {
    display: block;
    font-size: 11px;
    color: var(--kost-text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.kost-price-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kost-price-list li {
    display: flex;
    justify-content: space-between;
    padding: 6px 8px;
    font-size: 13px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.kost-price-list li:last-child {
    margin-bottom: 0;
}

.kost-price-list li span:first-child {
    color: var(--kost-text-muted);
}

.kost-price-list li span:last-child {
    font-weight: 600;
    color: var(--kost-text);
}

.kost-price-list li.active {
    background: var(--kost-primary);
    color: white;
}

.kost-price-list li.active span:first-child,
.kost-price-list li.active span:last-child {
    color: white;
}

/* ======================
   ROOM FACILITIES
   ====================== */
.kost-room-facilities {
    margin-bottom: 10px;
}

.kost-facilities-label {
    font-size: 12px;
    color: var(--kost-text-muted);
    text-transform: uppercase;
}

.kost-room-facilities p {
    font-size: 14px;
    color: var(--kost-text);
    margin: 5px 0 0;
}

.kost-room-floor {
    font-size: 13px;
    color: var(--kost-text-muted);
}

.kost-room-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--kost-border);
}

/* ======================
   BUTTONS
   ====================== */
.kost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.kost-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.kost-btn-primary {
    background: var(--kost-primary);
    color: white;
    width: 100%;
}

.kost-btn-primary:hover:not(:disabled) {
    background: var(--kost-primary-hover);
}

.kost-btn-secondary {
    background: var(--kost-bg);
    color: var(--kost-text);
    border: 1px solid var(--kost-border);
}

.kost-btn-secondary:hover:not(:disabled) {
    background: var(--kost-border);
}

.kost-btn-check {
    background: var(--kost-success);
    color: white;
    padding: 14px 28px;
    font-size: 16px;
}

.kost-btn-check:hover:not(:disabled) {
    background: #15803d;
}

.kost-btn-retry {
    background: var(--kost-error);
    color: white;
}

.kost-btn-retry:hover {
    background: #b91c1c;
}

/* ======================
   CONFIRMATION
   ====================== */
.kost-confirmation {
    background: var(--kost-card-bg);
    border-radius: var(--kost-radius);
    padding: 30px;
    box-shadow: var(--kost-shadow);
}

.kost-confirmation h3 {
    font-size: 24px;
    color: var(--kost-text);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--kost-border);
}

.kost-confirm-section {
    margin-bottom: 25px;
}

.kost-confirm-section h4 {
    font-size: 16px;
    color: var(--kost-primary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kost-confirm-table {
    width: 100%;
    border-collapse: collapse;
}

.kost-confirm-table td {
    padding: 8px 0;
    font-size: 15px;
    color: var(--kost-text);
    border-bottom: 1px solid var(--kost-border);
}

.kost-confirm-table td:first-child {
    width: 140px;
    color: var(--kost-text-muted);
}

/* Price section styling */
.kost-confirm-price {
    background: #f0fdf4;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
}

.kost-confirm-price h4 {
    color: var(--kost-success);
}

.kost-confirm-price .kost-confirm-table td {
    border-bottom-color: #bbf7d0;
}

.kost-total-row td {
    padding-top: 15px !important;
    font-size: 18px !important;
    border-bottom: none !important;
}

.kost-total-row td:last-child {
    color: var(--kost-success) !important;
}

.kost-confirm-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--kost-border);
}

.kost-confirm-actions .kost-btn {
    flex: 1;
}

/* ======================
   SUCCESS STATE
   ====================== */
.kost-success {
    text-align: center;
    padding: 50px 30px;
    background: var(--kost-card-bg);
    border-radius: var(--kost-radius);
    box-shadow: var(--kost-shadow);
}

.kost-success-icon {
    font-size: 72px;
    display: block;
    margin-bottom: 20px;
}

.kost-success h3 {
    font-size: 28px;
    color: var(--kost-success);
    margin-bottom: 10px;
}

.kost-success > p {
    color: var(--kost-text-muted);
    font-size: 16px;
    margin-bottom: 25px;
}

.kost-success-details {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
    display: inline-block;
    min-width: 280px;
}

.kost-success-details p {
    margin: 8px 0;
    font-size: 15px;
    color: var(--kost-text);
}

.kost-success-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
}

.kost-success-info p {
    margin: 0;
    color: var(--kost-primary);
    font-size: 14px;
}

/* ======================
   CF7 FORM OVERRIDES
   ====================== */
.kost-booking-form .wpcf7-form {
    max-width: 600px;
}

.kost-booking-form .form-group {
    margin-bottom: 20px;
}

.kost-booking-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--kost-text);
}

.kost-booking-form .form-row {
    display: flex;
    gap: 15px;
}

.kost-booking-form .form-row .form-group {
    flex: 1;
}

.kost-booking-form input[type="text"],
.kost-booking-form input[type="tel"],
.kost-booking-form input[type="number"],
.kost-booking-form input[type="date"],
.kost-booking-form select {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 2px solid var(--kost-border);
    border-radius: 8px;
    background: var(--kost-card-bg);
    transition: border-color 0.2s;
}

.kost-booking-form input:focus,
.kost-booking-form select:focus {
    outline: none;
    border-color: var(--kost-primary);
}

.kost-booking-form .wpcf7-not-valid {
    border-color: var(--kost-error);
}

.kost-booking-form .wpcf7-not-valid-tip {
    color: var(--kost-error);
    font-size: 13px;
    margin-top: 5px;
}

/* Duration input group */
.kost-duration-group {
    display: flex;
    gap: 10px;
}

.kost-duration-group select {
    flex: 0 0 45%;
}

.kost-duration-group input {
    flex: 1;
}

/* Hide default CF7 submit */
.kost-booking-form .wpcf7-submit {
    display: none !important;
}

/* Tambahan CSS jika form-hint tidak muncul dengan baik */
.form-hint {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 5px;
}

.kost-duration-group {
    display: flex;
    gap: 10px;
}

.kost-duration-group select {
    flex: 0 0 45%;
}

.kost-duration-group input {
    flex: 1;
}

@media (max-width: 480px) {
    .kost-duration-group {
        flex-direction: column;
    }
    .kost-duration-group select,
    .kost-duration-group input {
        flex: 1;
        width: 100%;
    }
}

/* ======================
   HIGHLIGHT HARGA AKTIF
   ====================== */

/* List harga di card kamar */
.kost-price-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kost-price-list li {
    display: flex;
    justify-content: space-between;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 4px;
    margin-bottom: 4px;
    background: transparent;
    transition: all 0.2s ease;
}

.kost-price-list li:last-child {
    margin-bottom: 0;
}

.kost-price-list li span:first-child {
    color: #64748b;
}

.kost-price-list li span:last-child {
    font-weight: 600;
    color: #1e293b;
}

/* ====================== 
   ACTIVE STATE - HIGHLIGHTED
   ====================== */
.kost-price-list li.active {
    background: #2563eb !important;
    color: white !important;
}

.kost-price-list li.active span,
.kost-price-list li.active span:first-child,
.kost-price-list li.active span:last-child {
    color: white !important;
}

/* Alternative: Jika mau style lain (border instead of background) */

.kost-price-list li.active {
    background: #eff6ff !important;
    border: 2px solid #2563eb;
    color: #2563eb !important;
}

.kost-price-list li.active span,
.kost-price-list li.active span:first-child,
.kost-price-list li.active span:last-child {
    color: #2563eb !important;
    font-weight: 700;
}


/* ======================
   ALL PRICES BOX
   ====================== */
.kost-room-all-prices {
    margin-bottom: 15px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.kost-prices-label {
    display: block;
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ======================
   RESPONSIVE
   ====================== */
@media (max-width: 768px) {
    .kost-room-grid {
        grid-template-columns: 1fr;
    }

    .kost-confirm-actions {
        flex-direction: column;
    }

    .kost-confirmation {
        padding: 20px;
    }

    .kost-results-container {
        padding: 15px;
    }

    .kost-success-details {
        min-width: auto;
        width: 100%;
    }

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

    .kost-duration-group {
        flex-direction: column;
    }

    .kost-duration-group select,
    .kost-duration-group input {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .kost-room-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .kost-price-value {
        font-size: 22px;
    }

    .kost-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ==============================================
   POPUP CONTAINER - Reset & Base
   ============================================== */

.pum-container .kost-booking-form,
.pum-content .kost-booking-form,
.pum .kost-booking-form {
    max-width: 100% !important;
}

/* ==============================================
   FORM ELEMENTS - High Specificity
   ============================================== */

/* Input & Select */
.pum-container .kost-booking-form input[type="text"],
.pum-container .kost-booking-form input[type="tel"],
.pum-container .kost-booking-form input[type="number"],
.pum-container .kost-booking-form input[type="date"],
.pum-container .kost-booking-form select,
.pum-content .kost-booking-form input[type="text"],
.pum-content .kost-booking-form input[type="tel"],
.pum-content .kost-booking-form input[type="number"],
.pum-content .kost-booking-form input[type="date"],
.pum-content .kost-booking-form select,
body .pum .wpcf7-form input[type="text"],
body .pum .wpcf7-form input[type="tel"],
body .pum .wpcf7-form input[type="number"],
body .pum .wpcf7-form input[type="date"],
body .pum .wpcf7-form select {
    width: 100% !important;
    padding: 12px 15px !important;
    font-size: 15px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #1e293b !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    transition: border-color 0.2s !important;
}

.pum-container .kost-booking-form input:focus,
.pum-container .kost-booking-form select:focus,
.pum-content .kost-booking-form input:focus,
.pum-content .kost-booking-form select:focus,
body .pum .wpcf7-form input:focus,
body .pum .wpcf7-form select:focus {
    outline: none !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

/* Select dropdown arrow */
.pum-container .kost-booking-form select,
.pum-content .kost-booking-form select,
body .pum .wpcf7-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    padding-right: 40px !important;
}

/* ==============================================
   BUTTONS - Tombol Cek Ketersediaan & Submit
   ============================================== */

/* Button Check Availability */
.pum-container .kost-btn-check,
.pum-content .kost-btn-check,
body .pum .kost-btn-check,
.pum-container button.kost-btn-check,
.pum-content button.kost-btn-check {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 14px 28px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    background: #16a34a !important;
    background-color: #16a34a !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.pum-container .kost-btn-check:hover,
.pum-content .kost-btn-check:hover,
body .pum .kost-btn-check:hover {
    background: #15803d !important;
    background-color: #15803d !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15) !important;
}

/* Button Primary (Pesan Kamar, Konfirmasi) */
.pum-container .kost-btn-primary,
.pum-content .kost-btn-primary,
body .pum .kost-btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 12px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    background: #2563eb !important;
    background-color: #2563eb !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    text-decoration: none !important;
}

.pum-container .kost-btn-primary:hover,
.pum-content .kost-btn-primary:hover,
body .pum .kost-btn-primary:hover {
    background: #1d4ed8 !important;
    background-color: #1d4ed8 !important;
}

/* Button Secondary (Kembali) */
.pum-container .kost-btn-secondary,
.pum-content .kost-btn-secondary,
body .pum .kost-btn-secondary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    background: #f8fafc !important;
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    text-decoration: none !important;
}

.pum-container .kost-btn-secondary:hover,
.pum-content .kost-btn-secondary:hover,
body .pum .kost-btn-secondary:hover {
    background: #e2e8f0 !important;
    background-color: #e2e8f0 !important;
}

/* Button Retry (Error state) */
.pum-container .kost-btn-retry,
.pum-content .kost-btn-retry,
body .pum .kost-btn-retry {
    background: #dc2626 !important;
    background-color: #dc2626 !important;
    color: #ffffff !important;
}

.pum-container .kost-btn-retry:hover,
.pum-content .kost-btn-retry:hover,
body .pum .kost-btn-retry:hover {
    background: #b91c1c !important;
    background-color: #b91c1c !important;
}

/* ==============================================
   ROOM CARDS
   ============================================== */

.pum-container .kost-room-grid,
.pum-content .kost-room-grid,
body .pum .kost-room-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 20px !important;
}

.pum-container .kost-room-card,
.pum-content .kost-room-card,
body .pum .kost-room-card {
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
}

.pum-container .kost-room-header,
.pum-content .kost-room-header,
body .pum .kost-room-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px 20px !important;
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: white !important;
}

.pum-container .kost-room-code,
.pum-content .kost-room-code,
body .pum .kost-room-code {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

.pum-container .kost-room-body,
.pum-content .kost-room-body,
body .pum .kost-room-body {
    padding: 20px !important;
}

.pum-container .kost-room-footer,
.pum-content .kost-room-footer,
body .pum .kost-room-footer {
    padding: 15px 20px !important;
    border-top: 1px solid #e2e8f0 !important;
}

/* ==============================================
   PRICE DISPLAY
   ============================================== */

.pum-container .kost-price-value,
.pum-content .kost-price-value,
body .pum .kost-price-value {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #2563eb !important;
}

.pum-container .kost-price-list,
.pum-content .kost-price-list,
body .pum .kost-price-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pum-container .kost-price-list li,
.pum-content .kost-price-list li,
body .pum .kost-price-list li {
    display: flex !important;
    justify-content: space-between !important;
    padding: 6px 10px !important;
    font-size: 13px !important;
    border-radius: 4px !important;
    margin-bottom: 4px !important;
}

.pum-container .kost-price-list li.active,
.pum-content .kost-price-list li.active,
body .pum .kost-price-list li.active {
    background: #2563eb !important;
}

.pum-container .kost-price-list li.active span,
.pum-content .kost-price-list li.active span,
body .pum .kost-price-list li.active span {
    color: #ffffff !important;
}

/* ==============================================
   LOADING & STATES
   ============================================== */

.pum-container .kost-loading,
.pum-content .kost-loading,
body .pum .kost-loading {
    text-align: center !important;
    padding: 40px 20px !important;
}

.pum-container .kost-spinner,
.pum-content .kost-spinner,
body .pum .kost-spinner {
    width: 50px !important;
    height: 50px !important;
    border: 4px solid #e2e8f0 !important;
    border-top-color: #2563eb !important;
    border-radius: 50% !important;
    animation: kost-spin 1s linear infinite !important;
    margin: 0 auto 20px !important;
}

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

/* ==============================================
   CONFIRMATION & SUCCESS
   ============================================== */

.pum-container .kost-confirmation,
.pum-content .kost-confirmation,
body .pum .kost-confirmation {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 30px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

.pum-container .kost-success,
.pum-content .kost-success,
body .pum .kost-success {
    text-align: center !important;
    padding: 50px 30px !important;
    background: #ffffff !important;
    border-radius: 12px !important;
}

.pum-container .kost-success-icon,
.pum-content .kost-success-icon,
body .pum .kost-success-icon {
    font-size: 72px !important;
    display: block !important;
    margin-bottom: 20px !important;
}

/* ==============================================
   FORM LAYOUT IN POPUP
   ============================================== */

.pum-container .form-row,
.pum-content .form-row,
body .pum .form-row {
    display: flex !important;
    gap: 15px !important;
}

.pum-container .form-row .form-group,
.pum-content .form-row .form-group,
body .pum .form-row .form-group {
    flex: 1 !important;
}

.pum-container .form-group,
.pum-content .form-group,
body .pum .form-group {
    margin-bottom: 20px !important;
}

.pum-container .form-group label,
.pum-content .form-group label,
body .pum .form-group label {
    display: block !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    color: #1e293b !important;
}

.pum-container .kost-duration-group,
.pum-content .kost-duration-group,
body .pum .kost-duration-group {
    display: flex !important;
    gap: 10px !important;
}

.pum-container .kost-duration-group select,
.pum-content .kost-duration-group select,
body .pum .kost-duration-group select {
    flex: 0 0 45% !important;
}

.pum-container .kost-duration-group input,
.pum-content .kost-duration-group input,
body .pum .kost-duration-group input {
    flex: 1 !important;
}

/* ==============================================
   RESPONSIVE - Popup Mobile
   ============================================== */

@media (max-width: 768px) {
    .pum-container .form-row,
    .pum-content .form-row,
    body .pum .form-row {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .pum-container .kost-room-grid,
    .pum-content .kost-room-grid,
    body .pum .kost-room-grid {
        grid-template-columns: 1fr !important;
    }

    .pum-container .kost-duration-group,
    .pum-content .kost-duration-group,
    body .pum .kost-duration-group {
        flex-direction: column !important;
    }

    .pum-container .kost-duration-group select,
    .pum-content .kost-duration-group select,
    body .pum .kost-duration-group select {
        flex: 1 !important;
    }

    .pum-container .kost-confirm-actions,
    .pum-content .kost-confirm-actions,
    body .pum .kost-confirm-actions {
        flex-direction: column !important;
    }
}

/* ==============================================
   GENERAL MOBILE FIX
   ============================================== */

/* Container tidak overflow */
.kost-results-container,
.kost-booking-wrapper,
.pum-container .kost-results-container,
.pum-content .kost-results-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

/* ==============================================
   ROOM GRID - RESPONSIVE
   ============================================== */

.kost-room-grid,
.pum-container .kost-room-grid,
.pum-content .kost-room-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Room Card */
.kost-room-card,
.pum-container .kost-room-card,
.pum-content .kost-room-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* ==============================================
   KONFIRMASI - TABLE TO STACK LAYOUT
   ============================================== */

/* Container konfirmasi */
.kost-confirmation,
.pum-container .kost-confirmation,
.pum-content .kost-confirmation {
    padding: 15px !important;
    box-sizing: border-box !important;
}

/* Section di konfirmasi */
.kost-confirm-section,
.pum-container .kost-confirm-section,
.pum-content .kost-confirm-section {
    margin-bottom: 20px !important;
    padding: 15px !important;
    background: #f8fafc !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
}

.kost-confirm-section h4,
.pum-container .kost-confirm-section h4,
.pum-content .kost-confirm-section h4 {
    margin: 0 0 12px 0 !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid #e2e8f0 !important;
    font-size: 14px !important;
    color: #1e293b !important;
}

/* Table konfirmasi - Convert ke stack layout */
.kost-confirm-table,
.pum-container .kost-confirm-table,
.pum-content .kost-confirm-table {
    width: 100% !important;
    border-collapse: collapse !important;
}

.kost-confirm-table tr,
.pum-container .kost-confirm-table tr,
.pum-content .kost-confirm-table tr {
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 8px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.kost-confirm-table tr:last-child,
.pum-container .kost-confirm-table tr:last-child,
.pum-content .kost-confirm-table tr:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

.kost-confirm-table td,
.pum-container .kost-confirm-table td,
.pum-content .kost-confirm-table td {
    display: block !important;
    width: 100% !important;
    padding: 2px 0 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    word-wrap: break-word !important;
}

/* Label (kolom pertama) */
.kost-confirm-table td:first-child,
.pum-container .kost-confirm-table td:first-child,
.pum-content .kost-confirm-table td:first-child {
    color: #64748b !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Value (kolom kedua) - hilangkan titik dua */
.kost-confirm-table td:last-child,
.pum-container .kost-confirm-table td:last-child,
.pum-content .kost-confirm-table td:last-child {
    color: #1e293b !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

/* Total row - highlight */
.kost-confirm-table .kost-total-row,
.pum-container .kost-confirm-table .kost-total-row,
.pum-content .kost-confirm-table .kost-total-row {
    background: #2563eb !important;
    margin: 10px -15px -15px -15px !important;
    padding: 12px 15px !important;
    border-radius: 0 0 8px 8px !important;
    border-bottom: none !important;
}

.kost-confirm-table .kost-total-row td,
.pum-container .kost-confirm-table .kost-total-row td,
.pum-content .kost-confirm-table .kost-total-row td {
    color: #ffffff !important;
}

.kost-confirm-table .kost-total-row td:first-child,
.pum-container .kost-confirm-table .kost-total-row td:first-child,
.pum-content .kost-confirm-table .kost-total-row td:first-child {
    color: rgba(255,255,255,0.8) !important;
}

.kost-confirm-table .kost-total-row td:last-child,
.pum-container .kost-confirm-table .kost-total-row td:last-child,
.pum-content .kost-confirm-table .kost-total-row td:last-child {
    font-size: 18px !important;
}

/* ==============================================
   CONFIRM ACTIONS - BUTTON STACK
   ============================================== */

.kost-confirm-actions,
.pum-container .kost-confirm-actions,
.pum-content .kost-confirm-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 20px !important;
}

.kost-confirm-actions .kost-btn,
.pum-container .kost-confirm-actions .kost-btn,
.pum-content .kost-confirm-actions .kost-btn {
    width: 100% !important;
    margin: 0 !important;
}

/* ==============================================
   ROOM CARD - MOBILE OPTIMIZATION
   ============================================== */

.kost-room-header,
.pum-container .kost-room-header,
.pum-content .kost-room-header {
    padding: 12px 15px !important;
}

.kost-room-code,
.pum-container .kost-room-code,
.pum-content .kost-room-code {
    font-size: 18px !important;
}

.kost-room-body,
.pum-container .kost-room-body,
.pum-content .kost-room-body {
    padding: 15px !important;
}

.kost-room-footer,
.pum-container .kost-room-footer,
.pum-content .kost-room-footer {
    padding: 12px 15px !important;
}

/* Price display */
.kost-room-price,
.pum-container .kost-room-price,
.pum-content .kost-room-price {
    text-align: center !important;
    margin-bottom: 15px !important;
}

.kost-price-value,
.pum-container .kost-price-value,
.pum-content .kost-price-value {
    font-size: 22px !important;
}

/* Price list */
.kost-room-all-prices,
.pum-container .kost-room-all-prices,
.pum-content .kost-room-all-prices {
    padding: 10px !important;
}

.kost-price-list li,
.pum-container .kost-price-list li,
.pum-content .kost-price-list li {
    padding: 8px 10px !important;
    font-size: 12px !important;
}

/* Facilities */
.kost-room-facilities,
.pum-container .kost-room-facilities,
.pum-content .kost-room-facilities {
    font-size: 12px !important;
}

/* ==============================================
   FORM - MOBILE OPTIMIZATION
   ============================================== */

.kost-booking-form .form-row,
.pum-container .kost-booking-form .form-row,
.pum-content .kost-booking-form .form-row {
    flex-direction: column !important;
    gap: 0 !important;
}

.kost-duration-group,
.pum-container .kost-duration-group,
.pum-content .kost-duration-group {
    flex-direction: column !important;
    gap: 10px !important;
}

.kost-duration-group select,
.kost-duration-group input,
.pum-container .kost-duration-group select,
.pum-container .kost-duration-group input,
.pum-content .kost-duration-group select,
.pum-content .kost-duration-group input {
    width: 100% !important;
    flex: none !important;
}

/* ==============================================
   SUCCESS PAGE - MOBILE
   ============================================== */

.kost-success,
.pum-container .kost-success,
.pum-content .kost-success {
    padding: 30px 15px !important;
}

.kost-success-icon,
.pum-container .kost-success-icon,
.pum-content .kost-success-icon {
    font-size: 56px !important;
}

.kost-success h3,
.pum-container .kost-success h3,
.pum-content .kost-success h3 {
    font-size: 20px !important;
}

.kost-success-details,
.pum-container .kost-success-details,
.pum-content .kost-success-details {
    padding: 15px !important;
    font-size: 13px !important;
}

/* ==============================================
   LOADING STATE - MOBILE
   ============================================== */

.kost-loading,
.pum-container .kost-loading,
.pum-content .kost-loading {
    padding: 30px 15px !important;
}

.kost-spinner,
.pum-container .kost-spinner,
.pum-content .kost-spinner {
    width: 40px !important;
    height: 40px !important;
}

/* ==============================================
   EMPTY STATE - MOBILE
   ============================================== */

.kost-empty,
.pum-container .kost-empty,
.pum-content .kost-empty {
    padding: 30px 15px !important;
}

.kost-empty-icon,
.pum-container .kost-empty-icon,
.pum-content .kost-empty-icon {
    font-size: 48px !important;
}

/* ==============================================
   RESULTS HEADER - MOBILE
   ============================================== */

.kost-results h3,
.pum-container .kost-results h3,
.pum-content .kost-results h3 {
    font-size: 18px !important;
    margin-bottom: 5px !important;
}

.kost-results-subtitle,
.pum-container .kost-results-subtitle,
.pum-content .kost-results-subtitle {
    font-size: 13px !important;
    margin-bottom: 15px !important;
}

/* ==============================================
   MEDIA QUERY - EXTRA SMALL (< 400px)
   ============================================== */

@media (max-width: 400px) {
    /* Even more compact for very small screens */
    
    .kost-confirm-section,
    .pum-container .kost-confirm-section,
    .pum-content .kost-confirm-section {
        padding: 12px !important;
    }
    
    .kost-confirm-section h4,
    .pum-container .kost-confirm-section h4,
    .pum-content .kost-confirm-section h4 {
        font-size: 13px !important;
    }
    
    .kost-confirm-table td:last-child,
    .pum-container .kost-confirm-table td:last-child,
    .pum-content .kost-confirm-table td:last-child {
        font-size: 13px !important;
    }
    
    .kost-confirm-table .kost-total-row td:last-child,
    .pum-container .kost-confirm-table .kost-total-row td:last-child,
    .pum-content .kost-confirm-table .kost-total-row td:last-child {
        font-size: 16px !important;
    }
    
    .kost-price-value,
    .pum-container .kost-price-value,
    .pum-content .kost-price-value {
        font-size: 20px !important;
    }
    
    .kost-price-list li,
    .pum-container .kost-price-list li,
    .pum-content .kost-price-list li {
        font-size: 11px !important;
        padding: 6px 8px !important;
    }
    
    .kost-room-code,
    .pum-container .kost-room-code,
    .pum-content .kost-room-code {
        font-size: 16px !important;
    }
    
    .kost-btn,
    .kost-btn-check,
    .kost-btn-primary,
    .kost-btn-secondary,
    .pum-container .kost-btn,
    .pum-content .kost-btn {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }
}

/* ==============================================
   MEDIA QUERY - SMALL (400px - 576px)
   ============================================== */

@media (min-width: 401px) and (max-width: 576px) {
    .kost-room-grid,
    .pum-container .kost-room-grid,
    .pum-content .kost-room-grid {
        grid-template-columns: 1fr !important;
    }
    
    .kost-confirm-table tr,
    .pum-container .kost-confirm-table tr,
    .pum-content .kost-confirm-table tr {
        flex-direction: column !important;
    }
}

/* ==============================================
   MEDIA QUERY - MEDIUM+ (> 576px)
   ============================================== */

@media (min-width: 577px) {
    /* Restore table layout for larger screens */
    .kost-confirm-table tr,
    .pum-container .kost-confirm-table tr,
    .pum-content .kost-confirm-table tr {
        display: table-row !important;
        flex-direction: unset !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        border-bottom: none !important;
    }
    
    .kost-confirm-table td,
    .pum-container .kost-confirm-table td,
    .pum-content .kost-confirm-table td {
        display: table-cell !important;
        padding: 8px 5px !important;
        font-size: 14px !important;
    }
    
    .kost-confirm-table td:first-child,
    .pum-container .kost-confirm-table td:first-child,
    .pum-content .kost-confirm-table td:first-child {
        width: 40% !important;
        text-transform: none !important;
        font-size: 14px !important;
    }
    
    .kost-confirm-actions,
    .pum-container .kost-confirm-actions,
    .pum-content .kost-confirm-actions {
        flex-direction: row !important;
    }
    
    .kost-confirm-actions .kost-btn,
    .pum-container .kost-confirm-actions .kost-btn,
    .pum-content .kost-confirm-actions .kost-btn {
        width: auto !important;
        flex: 1 !important;
    }
    
    .kost-duration-group,
    .pum-container .kost-duration-group,
    .pum-content .kost-duration-group {
        flex-direction: row !important;
    }
}

/* ==============================================
   MEDIA QUERY - LARGE+ (> 768px)
   ============================================== */

@media (min-width: 769px) {
    .kost-room-grid,
    .pum-container .kost-room-grid,
    .pum-content .kost-room-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    }
    
    .kost-booking-form .form-row,
    .pum-container .kost-booking-form .form-row,
    .pum-content .kost-booking-form .form-row {
        flex-direction: row !important;
        gap: 15px !important;
    }
}