/**
 * Styling form pendaftaran (Contact Form 7) — supaya tidak polos
 * bawaan browser. Target class standar CF7 (.wpcf7-form-control dkk)
 * + class custom yang kita tambahkan sendiri di form (.ioc-field dst).
 */

.ioc-form-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.ioc-form-section h3 {
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f4ff;
    font-size: 18px;
    color: #1e3a5f;
}

.ioc-field {
    margin-bottom: 18px;
}

.ioc-field:last-child {
    margin-bottom: 0;
}

.ioc-field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #334155;
}

/* Input, select, textarea CF7 */
.wpcf7-form-control {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wpcf7-form-control:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

textarea.wpcf7-form-control {
    min-height: 90px;
    resize: vertical;
}

select.wpcf7-form-control {
    background-color: #fff;
    cursor: pointer;
}

/* Field upload file -- rapikan tombol browser default */
.wpcf7-form-control-wrap[data-name="qris-upload"] input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    background: #f8fafc;
}

/* Subdomain + suffix ".iuranonline.com" sejajar dalam 1 baris */
.ioc-input-suffix {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ioc-input-suffix .wpcf7-form-control {
    flex: 1;
}

.ioc-input-suffix .ioc-suffix {
    flex-shrink: 0;
    color: #64748b;
    font-size: 14px;
    white-space: nowrap;
}

/* Tombol submit */
.ioc-form-submit {
    text-align: center;
    margin-top: 8px;
}

.ioc-form-submit .wpcf7-submit {
    background: linear-gradient(135deg, #2563eb 0%, #16a34a 100%);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ioc-form-submit .wpcf7-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.3);
}

/* Pesan error/sukses CF7 */
.wpcf7-not-valid-tip {
    color: #dc2626;
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

.wpcf7-response-output {
    border-radius: 8px;
    padding: 14px 18px;
    margin-top: 16px;
}

/* Responsif -- rapatkan padding di layar kecil */
@media (max-width: 480px) {
    .ioc-form-section {
        padding: 16px;
        border-radius: 8px;
    }
}

/* Tombol "Cek Status" */
.ioc-status-submit-btn {
    background: linear-gradient(135deg, #2563eb 0%, #16a34a 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 12px;
    width: 100%;
}