/* ==========================================================
   Suburb Profile Report - Registration / Payment (DEV-89)
   Form look copied from the existing plan registration page
   (user-registration.blade.php + style.css) so both match.
   ========================================================== */

.srr-page {
    --srr-blue: #6694f5;
    --srr-red: #d81435;
    --srr-field-border: #b0b0b0;
    --srr-box-border: #ccc;
    font-size: 14px;
}

/* ---------- Header ---------- */
.srr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.srr-back {
    flex: 0 0 auto;
    padding: 0.5rem 1.75rem;
    border: 2px solid #fff;
    border-radius: 30px;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease;
}

.srr-back:hover {
    background: #fff;
    color: #4cc3e4 !important;
}

.srr-alert {
    border: 1px solid #55c9e2;
    padding: 5px 30px;
    background: #fff;
    margin-bottom: 16px;
}

/* ---------- Section boxes (= .user_registration_header / .registration_grey_box) ---------- */
.srr-section-head {
    background-color: var(--srr-blue);
    color: #fff;
    padding: 15px 30px;
    font-size: 22px;
    font-family: 'robotobold';
    line-height: 1.3;
    margin-bottom: 20px;
}

.srr-grey-box {
    border: 1px solid var(--srr-box-border);
    padding: 15px 30px;
}

/* ---------- Fields (= .add-property input/select) ---------- */
.srr-input {
    display: block;
    width: 100%;
    margin: 0;
    padding: 15px;
    border: 1px solid var(--srr-field-border);
    border-radius: 0;
    background-color: #fff;
    font-size: 14px;
    line-height: 1.3;
    color: #212529;
    outline: none;
    transition: border-color 0.2s ease;
}

.srr-input:focus {
    border-color: var(--srr-blue);
}

.srr-input::placeholder {
    color: #757575;
}

.srr-input.is-invalid {
    border-color: #ff0000;
}

/* select with the old grey triangle arrow (= .select__arrow) */
.srr-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 30px;
    background-image: linear-gradient(45deg, transparent 50%, #7b7b7b 50%),
        linear-gradient(135deg, #7b7b7b 50%, transparent 50%);
    background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%;
    background-size: 5px 8px, 5px 8px;
    background-repeat: no-repeat;
}

.srr-label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: normal;
}

.srr-error {
    color: #ff0000;
    font-size: 14px;
    margin: 4px 0 0;
}

.srr-terms {
    font-size: 14px;
    cursor: pointer;
}

.srr-terms input {
    width: auto;
    margin-right: 6px;
    vertical-align: middle;
}

.srr-terms a {
    color: #617ff1;
    text-decoration: underline;
}

/* ---------- Payment ---------- */
.srr-cost {
    margin-bottom: 1rem;
    line-height: 25px;
}

/* Voucher Update button (= .button-border-outline) */
.srr-btn-outline {
    display: block;
    width: 100%;
    background: transparent;
    cursor: pointer;
    border: 2px solid var(--srr-blue);
    color: var(--srr-blue);
    border-radius: 50px;
    padding: 2px 10px;
    font-size: 12px;
    line-height: 1.5;
}

.srr-btn-outline:hover,
.srr-btn-outline:focus {
    background: var(--srr-blue);
    color: #fff;
}

.srr-voucher-msg {
    margin: 6px 0 0;
    font-size: 14px;
}

.srr-voucher-msg:empty {
    display: none;
}

.srr-voucher-msg.is-success {
    color: #2e9e5b;
}

.srr-voucher-msg.is-error {
    color: #ff0000;
}

.srr-logos img:first-child {
    height: 40px;
}

.srr-logos img:last-child {
    height: 36px;
}

.srr-methods {
    display: flex;
    flex-wrap: wrap;
    column-gap: 60px;
}

/* Custom radio (= label.custom-radio) */
.srr-radio {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 25px;
    user-select: none;
}

.srr-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.srr-radio-mark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
    border-radius: 50%;
}

.srr-radio:hover input ~ .srr-radio-mark {
    background-color: #ccc;
}

.srr-radio input:checked ~ .srr-radio-mark {
    background-color: var(--srr-blue);
}

.srr-radio-mark:after {
    content: "";
    position: absolute;
    display: none;
    top: 9px;
    left: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}

.srr-radio input:checked ~ .srr-radio-mark:after {
    display: block;
}

.srr-card[hidden] {
    display: none;
}

/* Submit button (client purchase-page mock) */
.srr-submit {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.srr-btn-submit {
    background: #2563eb;
    border: 0;
    border-radius: 50px;
    color: #fff;
    font-family: 'robotobold';
    font-size: 13px;
    margin: 0;
    padding: 10px 30px;
    text-transform: uppercase;
    min-width: 160px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.srr-btn-submit:hover,
.srr-btn-submit:focus {
    background: #1d4ed8;
    color: #fff;
}

/* ---------- Terms modal ---------- */
.srr-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(19, 23, 66, 0.6);
}

.srr-modal[hidden] {
    display: none;
}

.srr-modal-dialog {
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
}

.srr-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--srr-blue);
    color: #fff;
}

.srr-modal-head h3 {
    font-size: 20px;
    margin: 0;
}

.srr-modal-close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 22px;
    line-height: 1;
}

.srr-modal-body {
    padding: 20px;
    overflow-y: auto;
    font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
    .srr-header h1 {
        font-size: 24px;
    }

    .srr-back {
        padding: 6px 1rem;
    }

    .srr-section-head {
        padding: 12px 16px;
        font-size: 18px;
    }

    .srr-grey-box {
        padding: 15px 16px;
    }

    .srr-input {
        padding: 15px 10px;
    }
}

.srr-logos img + img {
    margin-left: 24px;
}

/* ---------- Payment confirmation (DEV-89) ---------- */
.srr-confirm p {
    line-height: 25px;
}

a.srr-btn-submit {
    display: inline-block;
    text-decoration: none !important;
}

.srr-steps {
    margin: 0 0 16px;
    padding-left: 22px;
    line-height: 25px;
}
