/*
  Form Seleksi Agen PB Premium
  Semua style diprefix .rt-konsultasi-section agar aman dipakai di Elementor/tema apapun
  dan tidak bocor ke elemen lain di halaman. Mengikuti skema plugin-form-umroh.
*/

.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-step {
    display: none;
}

.rt-step.active {
    display: block;
}

.rt-step-indicator {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-bottom: 24px;
}

.rt-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.rt-step-dot-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.rt-step-dot-label {
    font-size: 10px;
    color: #6c757d;
    text-align: center;
    white-space: nowrap;
}

.rt-step-dot.active .rt-step-dot-num {
    background: #0e7641;
    color: #ffffff;
}

.rt-step-dot.active .rt-step-dot-label {
    color: #0e7641;
    font-weight: 600;
}

.rt-step-dot.done .rt-step-dot-num {
    background: #c39a31;
    color: #ffffff;
}

.rt-step-line {
    flex: 1 1 auto;
    height: 2px;
    background: #e9ecef;
    margin: 15px 6px 0;
    min-width: 24px;
}

.rt-step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.rt-step-actions-end {
    justify-content: flex-end;
}

.rt-btn-next,
.rt-btn-prev {
    border: none;
    border-radius: 8px;
    min-height: 48px;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.rt-btn-next {
    background: #0e7641;
    color: #ffffff;
    flex: 1 1 auto;
}

.rt-btn-prev {
    background: #ffffff;
    color: #495057;
    border: 1px solid #ced4da;
}

.rt-btn-next:hover,
.rt-btn-prev:hover {
    opacity: 0.85;
}

.rt-legend {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0e7641;
    border-left: 3px solid #c39a31;
    padding-left: 8px;
    margin: 0 0 16px;
}

.rt-option-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rt-option-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.rt-option-inline {
    display: flex;
    gap: 24px;
}

.rt-konsultasi-section .form-check {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 12px 10px 38px;
    margin: 0;
    font-size: 13px;
    min-height: auto;
}

.rt-konsultasi-section .form-check-input {
    margin-top: 0.2em;
}

.rt-konsultasi-section .form-check-input:checked {
    background-color: #0e7641;
    border-color: #0e7641;
}

.rt-konsultasi-section .form-check-input:focus {
    border-color: #0e7641;
    box-shadow: 0 0 0 0.2rem rgba(14, 118, 65, 0.15);
}

.rt-konsultasi-section .form-check-label {
    cursor: pointer;
    width: 100%;
}

.rt-rate-scale {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px;
}

.rt-rate-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #495057;
    cursor: pointer;
    text-align: center;
}

.rt-rate-item .form-check-input {
    width: 18px;
    height: 18px;
}

.rt-rate-item .form-check-input:checked {
    background-color: #c39a31;
    border-color: #c39a31;
}

.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-option-grid {
        grid-template-columns: 1fr;
    }

    .rt-step-dot-label {
        display: none;
    }

    .rt-step-actions {
        flex-direction: column-reverse;
    }

    .rt-step-actions .rt-btn-prev,
    .rt-step-actions .rt-btn-next,
    .rt-step-actions .rt-btn-wa {
        width: 100%;
    }

    .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;
    }
}
