/* =========================================================
   Public "Your Requirement" form
   Theme: primary #26ae61, heading #001935 (matches style.css)
   ========================================================= */

:root {
    --rq-primary: #26ae61;
    --rq-primary-dark: #1e8449;
    --rq-primary-soft: #eaf7f0;
    --rq-heading: #001935;
    --rq-text: #4b5563;
    --rq-muted: #6b7280;
    --rq-border: #e3e8ee;
    --rq-soft: #f6f8fa;
    --rq-danger: #dc3545;
}

.rq-page {
    padding: 50px 0 80px;
    background: var(--rq-soft);
}

.rq-head {
    max-width: 760px;
    margin-bottom: 28px;
}

.rq-head-label {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--rq-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.rq-head-title {
    margin: 0 0 10px;
    color: var(--rq-heading);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.15;
}

.rq-head-text {
    margin: 0;
    color: var(--rq-text);
    font-size: 15.5px;
    line-height: 1.7;
}

.rq-card {
    border: 1px solid var(--rq-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(15, 42, 71, .06);
}

.rq-form {
    padding: 32px;
}

.rq-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    color: var(--rq-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.rq-section-title i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--rq-primary-soft);
    color: var(--rq-primary);
    font-size: 14px;
}

.rq-col-personal {
    padding-left: 32px;
    border-left: 1px solid var(--rq-border);
}

.rq-form .form-label {
    margin-bottom: 6px;
    color: var(--rq-heading);
    font-size: 14px;
    font-weight: 600;
}

.rq-form .form-label small {
    color: var(--rq-muted);
    font-weight: 400;
}

.rq-form .req {
    color: var(--rq-danger);
}

.rq-form .form-control,
.rq-form .form-select {
    min-height: 46px;
    border: 1px solid var(--rq-border);
    border-radius: 10px;
    color: var(--rq-heading);
    font-size: 15px;
}

.rq-form textarea.form-control {
    min-height: 92px;
}

.rq-form .form-control:focus,
.rq-form .form-select:focus {
    border-color: var(--rq-primary);
    box-shadow: 0 0 0 3px rgba(38, 174, 97, .15);
}

.rq-form .is-invalid {
    border-color: var(--rq-danger) !important;
}

.rq-error {
    display: block;
    margin-top: 5px;
    color: var(--rq-danger);
    font-size: 13px;
    line-height: 1.45;
}

.rq-hint {
    display: block;
    margin-top: 5px;
    color: var(--rq-muted);
    font-size: 12.5px;
}

/* property type pills */
.rq-types {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rq-type {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.rq-type input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rq-type span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid var(--rq-border);
    border-radius: 30px;
    background: #fff;
    color: var(--rq-text);
    font-size: 14.5px;
    font-weight: 600;
    transition: all .15s ease;
}

.rq-type input:checked + span {
    border-color: var(--rq-primary);
    background: var(--rq-primary-soft);
    color: var(--rq-primary-dark);
}

.rq-type input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(38, 174, 97, .25);
}

/* fields that belong to one property type */
[data-rq-for] {
    display: none;
}

[data-rq-for].is-shown {
    display: block;
}

.rq-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rq-range > * {
    flex: 1 1 0;
    min-width: 0;
}

.rq-range .rq-range-sep {
    flex: 0 0 auto;
    color: var(--rq-muted);
}

.rq-trust {
    display: flex;
    gap: 10px;
    margin: 4px 0 22px;
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--rq-primary-soft);
    color: var(--rq-primary-dark);
    font-size: 13.5px;
    line-height: 1.55;
}

.rq-alert {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid #f5c2c7;
    border-radius: 10px;
    background: #fff5f5;
    color: #842029;
    font-size: 14px;
}

.rq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 30px;
    border: 0;
    border-radius: 30px;
    font-size: 15.5px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s ease;
}

.rq-btn-primary {
    background: var(--rq-primary);
    color: #fff;
}

.rq-btn-primary:hover,
.rq-btn-primary:focus {
    background: var(--rq-primary-dark);
    color: #fff;
}

.rq-btn-light {
    border: 1px solid var(--rq-border);
    background: #fff;
    color: var(--rq-heading);
}

.rq-btn-light:hover {
    background: var(--rq-soft);
    color: var(--rq-heading);
}

.rq-submit {
    width: 100%;
}

/* how it works */
.rq-how {
    margin-top: 28px;
    padding: 32px;
}

.rq-how-title {
    margin: 0 0 24px;
    color: var(--rq-heading);
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
}

.rq-step {
    display: flex;
    gap: 14px;
    height: 100%;
}

.rq-step-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 3px solid var(--rq-primary-soft);
    border-radius: 50%;
    background: var(--rq-primary);
    color: #fff;
    font-size: 19px;
}

.rq-step h3 {
    margin: 4px 0 6px;
    color: var(--rq-primary-dark);
    font-size: 1.05rem;
    font-weight: 700;
}

.rq-step p {
    margin: 0;
    color: var(--rq-text);
    font-size: 14px;
    line-height: 1.6;
}

/* thank-you / notice states */
.rq-done {
    max-width: 680px;
    margin: 0 auto;
    padding: 48px 32px;
    text-align: center;
}

.rq-done-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--rq-primary-soft);
    color: var(--rq-primary);
    font-size: 30px;
}

.rq-done-icon.is-warn {
    background: #fff4e5;
    color: #d97706;
}

.rq-done-title {
    margin: 0 0 12px;
    color: var(--rq-heading);
    font-size: 1.7rem;
    font-weight: 700;
}

.rq-done-text {
    margin: 0 auto 8px;
    color: var(--rq-text);
    font-size: 15.5px;
    line-height: 1.7;
}

.rq-done-summary {
    display: inline-block;
    margin: 14px 0 6px;
    padding: 10px 18px;
    border-radius: 10px;
    background: var(--rq-soft);
    color: var(--rq-heading);
    font-weight: 600;
}

.rq-done-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

@media (max-width: 991.98px) {
    .rq-col-personal {
        margin-top: 28px;
        padding-top: 28px;
        padding-left: calc(var(--bs-gutter-x) * .5);
        border-top: 1px solid var(--rq-border);
        border-left: 0;
    }
}

@media (max-width: 575.98px) {
    .rq-page {
        padding: 30px 0 50px;
    }

    .rq-head-title {
        font-size: 1.7rem;
    }

    .rq-form,
    .rq-how {
        padding: 22px 18px;
    }

    .rq-done {
        padding: 36px 20px;
    }
}
