/* ================= BASE ================= */
body {
    background: #f4f7fb;
}

/* ================= CONTAINER ================= */
.rpb-container {
    max-width: 1150px;
    margin: 50px auto;
    font-family: 'Segoe UI', sans-serif;
}

/* ================= CARD ================= */
.rpb-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 35px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.rpb-card:hover {
    transform: translateY(-2px);
}

/* ================= TITLE ================= */
.rpb-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #222;
}

/* ================= GRID ================= */
.rpb-grid {
    display: flex;
    gap: 30px;
}

/* ================= FORM ================= */
.rpb-form {
    flex: 2;
}

/* ================= SUMMARY ================= */
.rpb-summary {
    flex: 1;
    background: linear-gradient(135deg, #f8f9fb, #eef2f7);
    padding: 25px;
    border-radius: 16px;
}

/* ================= INPUT ================= */
.rpb-input,
.rpb-select {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 18px;
    border: 1px solid #e1e5ea;
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    color: #333;
    transition: all 0.25s ease;
}

/* PREMIUM DROPDOWN */
/* ===== FIX DROPDOWN PROPERLY ===== */
.rpb-select {
    width: 100%;
    height: 44px;                /* 🔥 fixed height */
    padding: 0 14px;             /* remove top-bottom padding */
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    background-color: #fff;
    color: #222;

    line-height: 44px;           /* 🔥 vertical center FIX */

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg fill='%23666' height='16' viewBox='0 0 24 24' width='16'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;

    cursor: pointer;
}

/* FIX OPTION TEXT */
.rpb-select option {
    color: #000;
}

/* FOCUS */
.rpb-input:focus,
.rpb-select:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76,175,80,0.12);
    outline: none;
}

/* ================= ROW ================= */
.rpb-row {
    display: flex;
    gap: 15px;
}

.rpb-row .rpb-input {
    flex: 1;
}

/* ================= BUTTON ================= */
.rpb-btn {
    width: 100%;
    background: linear-gradient(135deg, #4CAF50, #2ecc71);
    border: none;
    color: #fff;
    padding: 13px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rpb-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(76,175,80,0.3);
}

/* SMALL BUTTON */
.rpb-btn-sm {
    width: auto;
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 8px;
}

/* ================= SUMMARY BOX ================= */
.rpb-box {
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.rpb-box strong {
    color: #222;
}

/* TOTAL */
.rpb-total {
    background: linear-gradient(135deg, #4CAF50, #2ecc71);
    color: #fff;
    padding: 22px;
    border-radius: 14px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

/* ================= OTP ================= */
.rpb-otp-wrapper {
    margin-top: 20px;
}

/* OTP GROUP */
.rpb-otp-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* INPUT */
.rpb-otp-group input {
    flex: 1;
    height: 42px;
}

/* ================= STATUS BOX ================= */
#otp_status {
    margin-top: 10px;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    display: none;
}

/* COLORS */
.rpb-info {
    background: #e7f3ff;
    color: #3178c6;
}

.rpb-success {
    background: #e6f7ee;
    color: #1e7e34;
}

.rpb-error {
    background: #fdecea;
    color: #c82333;
}

/* ================= ADMIN ================= */
.rpb-admin h2 {
    margin-bottom: 20px;
}

.rpb-table th {
    background: #f5f7fa;
}

/* STATUS BADGE */
.rpb-status {
    padding: 6px 12px;
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
}

.rpb-status.pending { background: #f39c12; }
.rpb-status.confirmed { background: #2ecc71; }
.rpb-status.cancelled { background: #e74c3c; }

/* ================= INVOICE ================= */
.inv-company {
    display: flex;
    align-items: center;
    gap: 15px;
}

.inv-logo {
    height: 60px;
}

/* ================= RESPONSIVE ================= */
@media(max-width: 768px){

    .rpb-grid {
        flex-direction: column;
    }

    .rpb-form,
    .rpb-summary {
        width: 100%;
    }

    .rpb-otp-group {
        flex-direction: column;
    }

    .rpb-btn-sm {
        width: 100%;
    }
}

/* FIX EMPTY SELECT LOOK */
/* FIX SELECT TEXT VISIBILITY */
.rpb-select {
    color: #222 !important;
    background-color: #fff !important;
}

/* FIX SELECTED VALUE */
.rpb-select:focus,
.rpb-select:active {
    color: #222 !important;
}

/* FIX OPTION TEXT */
.rpb-select option {
    color: #000 !important;
}
/* Placeholder style */
.rpb-select option[value=""] {
    color: #999;
}

/* ===== OTP BUTTON FIX ===== */
.rpb-btn-sm {
    background: linear-gradient(135deg, #4CAF50, #2ecc71) !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 16px !important;
    font-size: 13px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-block;
}

/* HOVER */
.rpb-btn-sm:hover {
    background: linear-gradient(135deg, #43a047, #27ae60) !important;
}

/* FIX BUTTON TEXT VISIBILITY */
.rpb-btn-sm:focus,
.rpb-btn-sm:active {
    color: #fff !important;
    outline: none;
}

/* FIX DEFAULT BUTTON OVERRIDE */
button.rpb-btn-sm {
    background: linear-gradient(135deg, #4CAF50, #2ecc71) !important;
    color: #fff !important;
}
