/*
  Form Konsultasi Umroh Rabbanitour
  Semua style diprefix .rt-konsultasi-section agar aman dipakai di Elementor/tema apapun
  dan tidak bocor ke elemen lain di halaman.
*/

.rt-konsultasi-section,
.rt-konsultasi-section * {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.rt-field {
    margin-bottom: 16px;
}

.rt-label {
    display: block;
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 5px;
}

.rt-wajib {
    color: #d91f1f;
}

.rt-konsultasi-section .form-control,
.rt-konsultasi-section .form-select {
    width: 100%;
    border-radius: 8px;
    min-height: 52px;
    padding: 16px;
    font-size: 14px;
    transition: all 0.25s ease;
}

.rt-konsultasi-section .form-control:focus,
.rt-konsultasi-section .form-select:focus {
    border-color: #0e7641;
    outline: none;
}

.rt-btn-wa {
    width: 100%;
    min-height: 32px;
    border: none;
    border-radius: 8px;
    background: #0e7641 !important;
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.rt-btn-wa:hover {
    opacity: 0.90;
    color: #ffffff;
}

.rt-btn-wa:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.rt-btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: rt-spin 0.7s linear infinite;
}

.rt-btn-wa.rt-loading .rt-btn-spinner {
    display: inline-block;
}

.rt-btn-wa.rt-loading .rt-btn-icon {
    display: none;
}

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

.rt-privacy-note {
    margin: 16px 0 0;
    color: #c39a31;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 575px) {
    .rt-field {
        margin-bottom: 16px;
    }

    .rt-label {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .rt-konsultasi-section .form-control,
    .rt-konsultasi-section .form-select {
        min-height: 52px;
        border-radius: 8px;
        font-size: 12px;
        padding: 16px;
    }

    .rt-btn-wa {
        min-height: 54px;
        border-radius: 8px;
        font-size: 12px;
        letter-spacing: 1px;
    }

    .rt-privacy-note {
        font-size: 12px;
        padding: 20px;
    }
}

@media (max-width: 360px) {
    .rt-form-body {
        padding: 10px;
    }

    .rt-btn-wa {
        font-size: 12px;
    }
}
/* Dropdown paket (assets/paket-picker.js): nama paket + baris "mulai Rp ..." & badge Promo, seperti di sistem. */
.rt-konsultasi-section .rt-pp {
    position: relative;
}

.rt-konsultasi-section .rt-pp-native {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

.rt-konsultasi-section .rt-pp-trigger {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 52px;
    padding: 0 40px 0 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #ffffff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") no-repeat right 16px center / 16px 12px;
    color: #212529;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.rt-konsultasi-section .rt-pp-open .rt-pp-trigger,
.rt-konsultasi-section .rt-pp-trigger:focus {
    border-color: #0e7641;
    outline: none;
}

.rt-konsultasi-section .rt-pp-invalid .rt-pp-trigger {
    border-color: #d91f1f;
}

.rt-konsultasi-section .rt-pp-placeholder,
.rt-konsultasi-section .rt-pp-value {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rt-konsultasi-section .rt-pp-placeholder {
    color: #6c757d;
}

.rt-konsultasi-section .rt-pp-panel {
    position: absolute;
    z-index: 50;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 320px;
    overflow-y: auto;
    padding: 4px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.rt-konsultasi-section .rt-pp-group {
    padding: 8px 10px 4px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rt-konsultasi-section .rt-pp-item {
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.rt-konsultasi-section .rt-pp-item.rt-pp-active,
.rt-konsultasi-section .rt-pp-item:hover {
    background: rgba(14, 118, 65, 0.08);
}

.rt-konsultasi-section .rt-pp-item[aria-selected="true"] .rt-pp-title {
    color: #0e7641;
    font-weight: 600;
}

.rt-konsultasi-section .rt-pp-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.rt-konsultasi-section .rt-pp-title {
    color: #111827;
    font-size: 14px;
    line-height: 1.3;
}

.rt-konsultasi-section .rt-pp-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.3;
}

.rt-konsultasi-section .rt-pp-harga {
    font-variant-numeric: tabular-nums;
}

.rt-konsultasi-section .rt-pp-badge {
    padding: 1px 6px;
    border-radius: 6px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 11px;
    font-weight: 600;
}

@media (max-width: 575px) {
    .rt-konsultasi-section .rt-pp-trigger {
        font-size: 12px;
    }
}

/* Field kode referal (assets/referral-field.js). */
.rt-konsultasi-section .rt-ref-toggle {
    padding: 0;
    border: 0;
    background: none;
    color: #0e7641;
    font-size: 13px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.rt-konsultasi-section .rt-ref-field {
    margin-top: 10px;
}

.rt-konsultasi-section .rt-ref-input {
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rt-konsultasi-section .rt-ref-input[aria-invalid="true"] {
    border-color: #d91f1f;
}

.rt-konsultasi-section .rt-ref-status {
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
}

.rt-konsultasi-section .rt-ref-status:empty {
    display: none;
}

.rt-konsultasi-section .rt-ref-ok {
    color: #0e7641;
}

.rt-konsultasi-section .rt-ref-error {
    color: #d91f1f;
}
