/* ============================================================
   Rumah Madani - Form Konfirmasi Pembayaran
   ============================================================ */

.rmpc-box {
    max-width: 580px;
    margin: 30px auto;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 32px 36px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.rmpc-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.rmpc-header h2 {
    margin: 0 0 6px;
    color: #1a1a1a;
    font-size: 22px;
}

.rmpc-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Alert */
.rmpc-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.rmpc-alert-error {
    background: #fff3f3;
    border: 1px solid #f5c6cb;
    color: #842029;
}

/* Form Fields */
.rmpc-form .rmpc-field {
    margin-bottom: 20px;
}

.rmpc-form label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    font-size: 14px;
}

.rmpc-required {
    color: #e53e3e;
}

.rmpc-form input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
    box-sizing: border-box;
    color: #333;
}

.rmpc-form input[type="text"]:focus {
    outline: none;
    border-color: #96588a;
    box-shadow: 0 0 0 3px rgba(150,88,138,0.12);
}

.rmpc-form small {
    display: block;
    color: #888;
    font-size: 12px;
    margin-top: 5px;
}

/* Upload Area */
.rmpc-upload-area {
    position: relative;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
}

.rmpc-upload-area:hover {
    border-color: #96588a;
    background: #f5eef8;
}

.rmpc-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.rmpc-upload-label {
    pointer-events: none;
}

.rmpc-upload-icon {
    font-size: 28px;
    display: block;
}

#rmpc-file-label {
    color: #666;
    font-size: 14px;
}

#rmpc-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: 6px;
    margin-top: 10px;
    border: 1px solid #ddd;
}

/* Submit Button */
.rmpc-submit-wrap {
    margin-top: 28px;
}

.rmpc-btn-submit {
    display: block;
    width: 100%;
    padding: 13px 24px;
    background: #96588a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.rmpc-btn-submit:hover {
    background: #7a4673;
}

.rmpc-btn-submit:active {
    transform: scale(0.98);
}

/* Success State */
.rmpc-success {
    text-align: center;
    padding: 48px 36px;
}

.rmpc-success-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.rmpc-success h2 {
    color: #1a7a3d;
    margin: 0 0 12px;
}

.rmpc-success p {
    color: #555;
    margin: 8px 0;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 600px) {
    .rmpc-box {
        margin: 16px;
        padding: 24px 20px;
    }
}

/* ============================================================
   Tambahan v1.2.0 — Field baru: Bank, Nominal
   ============================================================ */

/* Input readonly (No Order otomatis terisi) */
.rmpc-form input.rmpc-readonly {
    background: #f5f5f5;
    color: #555;
    cursor: not-allowed;
    border-color: #ddd;
}

.rmpc-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rmpc-input-wrap input {
    flex: 1;
}

.rmpc-auto-badge {
    display: inline-block;
    background: #d4edda;
    color: #155724;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* Dropdown bank */
.rmpc-form select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: auto;
}

.rmpc-form select:focus {
    outline: none;
    border-color: #96588a;
    box-shadow: 0 0 0 3px rgba(150,88,138,0.12);
}

/* Input nominal dengan prefix Rp */
.rmpc-input-prefix-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.rmpc-input-prefix-wrap:focus-within {
    border-color: #96588a;
    box-shadow: 0 0 0 3px rgba(150,88,138,0.12);
}

.rmpc-prefix {
    background: #f0f0f0;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    border-right: 1.5px solid #ddd;
    white-space: nowrap;
}

.rmpc-input-prefix-wrap input {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 10px 14px;
    flex: 1;
    font-size: 15px;
}

.rmpc-input-prefix-wrap input:focus {
    outline: none;
}
