/* =========================================================
   Ciudad Home - Solicitud y perfil de Inmobiliaria
   ========================================================= */

body.re-account .ch-agency-account-page {
    padding: 0 0 34px;
}

body.re-account .ch-agency-account {
    width: 100%;
}

body.re-account .ch-agency-account__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 20px;
}

body.re-account .ch-agency-account__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--re-brand);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

body.re-account .ch-agency-account__head h1 {
    margin: 0;
    color: var(--re-ink);
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -.03em;
}

body.re-account .ch-agency-account__head p {
    max-width: 650px;
    margin: 8px 0 0;
    color: var(--re-muted);
    font-size: 14px;
    line-height: 1.55;
}

.ch-agency-status {
    flex: 0 0 auto;
    min-width: 150px;
    padding: 11px 13px;
    border: 1px solid #e3e7ec;
    border-radius: var(--re-radius-sm);
    background: #fff;
    text-align: right;
}

.ch-agency-status strong,
.ch-agency-status span {
    display: block;
}

.ch-agency-status strong {
    color: #4d5765;
    font-size: 12px;
}

.ch-agency-status span {
    margin-top: 2px;
    color: #8a93a0;
    font-size: 10.5px;
}

.ch-agency-status--pending {
    border-color: #f0d79b;
    background: #fffbef;
}

.ch-agency-status--pending strong {
    color: #906716;
}

.ch-agency-status--approved {
    border-color: #bfe4ca;
    background: #f1fbf4;
}

.ch-agency-status--approved strong {
    color: #267348;
}

.ch-agency-status__approved-title {
    display: flex !important;
    align-items: center;
    justify-content: right;
    gap: 6px;
}

.ch-agency-status__approved-check {
    display: block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.ch-agency-status--rejected {
    border-color: #f3c7bc;
    background: #fff5f2;
}

.ch-agency-status--rejected strong {
    color: #b1432c;
}

.ch-agency-notice {
    margin: 0 0 16px;
    padding: 13px 15px;
    border: 1px solid #dfe5ec;
    border-radius: var(--re-radius-sm);
    background: #f7f9fb;
    color: #667180;
    font-size: 12.5px;
    line-height: 1.5;
}

.ch-agency-notice strong,
.ch-agency-notice span {
    display: block;
}

.ch-agency-notice ul {
    margin: 7px 0 0;
    padding-left: 18px;
}

.ch-agency-notice--success {
    border-color: #bfe4ca;
    background: #f1fbf4;
    color: #267348;
}

.ch-agency-notice--warning {
    border-color: #f0d79b;
    background: #fffbef;
    color: #8a6518;
}

.ch-agency-notice--error {
    border-color: #f3c7bc;
    background: #fff5f2;
    color: #a83d28;
}

.ch-agency-form {
    display: grid;
    gap: 16px;
}

.ch-agency-card {
    overflow: hidden;
    border: 1px solid var(--re-line);
    border-radius: var(--re-radius);
    background: var(--re-card);
    box-shadow: var(--re-shadow);
}

.ch-agency-card__head {
    padding: 18px 20px;
    border-bottom: 1px solid var(--re-line-soft);
}

.ch-agency-card__head span {
    display: block;
    margin-bottom: 3px;
    color: var(--re-brand);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ch-agency-card__head h2 {
    margin: 0;
    color: var(--re-ink);
    font-size: 18px;
    font-weight: 700;
}

.ch-agency-fields {
    display: grid;
    gap: 15px;
    padding: 20px;
}

.ch-agency-fields--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ch-agency-fields--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ch-agency-field {
    display: block;
    min-width: 0;
    margin: 0;
}

.ch-agency-field--wide {
    grid-column: 1 / -1;
}

.ch-agency-field > span {
    display: block;
    margin-bottom: 6px;
    color: #566174;
    font-size: 12px;
    font-weight: 700;
}

.ch-agency-field input {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid #d9dee6;
    border-radius: 11px;
    background: #fff;
    color: var(--re-ink);
    font: inherit;
    font-size: 14px;
    outline: 0;
    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.ch-agency-field input:focus {
    border-color: #aeb8c5;
    box-shadow: 0 0 0 2px rgba(255, 62, 12, .08);
}

.ch-agency-field small {
    display: block;
    margin-top: 6px;
    color: #8e97a5;
    font-size: 11px;
    line-height: 1.4;
}

.ch-agency-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding: 20px;
}

.ch-agency-option-group {
    display: grid;
    gap: 9px;
}

.ch-agency-option-group h3 {
    margin: 0 0 3px;
    color: #505b69;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.ch-agency-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 11px 12px;
    border: 1px solid #e4e8ed;
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
    transition:
        border-color .15s ease,
        background .15s ease;
}

.ch-agency-check:hover {
    border-color: #ffc0ad;
    background: #fffaf8;
}

.ch-agency-check input {
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    accent-color: #ff3e0c;
    flex: 0 0 auto;
}

.ch-agency-check span {
    display: block;
    min-width: 0;
}

.ch-agency-check strong,
.ch-agency-check small {
    display: block;
}

.ch-agency-check strong {
    color: #485260;
    font-size: 12.5px;
}

.ch-agency-check small {
    margin-top: 2px;
    color: #8c95a1;
    font-size: 10.5px;
    line-height: 1.35;
}

.ch-agency-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid var(--re-line);
    border-radius: var(--re-radius);
    background: #fff;
    box-shadow: var(--re-shadow);
}

.ch-agency-actions strong,
.ch-agency-actions span {
    display: block;
}

.ch-agency-actions strong {
    color: #4d5765;
    font-size: 12.5px;
}

.ch-agency-actions span {
    margin-top: 3px;
    color: #8a93a0;
    font-size: 11px;
    line-height: 1.4;
}

.ch-agency-submit {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--re-brand);
    border-radius: 11px;
    background: var(--re-brand);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(239, 90, 40, .24);
    transition:
        background .15s ease,
        transform .12s ease;
}

.ch-agency-submit:hover {
    background: var(--re-brand-dark);
    transform: translateY(-1px);
}

.ch-auth-agency {
    margin: 3px 0 18px;
    padding: 14px;
    border: 1px solid #e6e9ee;
    border-radius: 12px;
    background: #f8f9fb;
}

.ch-auth-agency__title {
    display: block;
    margin-bottom: 9px;
    color: #1d2533;
    font-size: 13px;
    font-weight: 700;
}

.ch-auth-agency__choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ch-auth-agency__choice {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    margin: 0;
    padding: 0 11px;
    border: 1px solid #dfe3e8;
    border-radius: 11px;
    background: #fff;
    color: #5d6775;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.ch-auth-agency__choice input {
    accent-color: #ff3e0c;
}

.ch-auth-agency__hint {
    display: block;
    margin-top: 9px;
    color: #8b94a1;
    font-size: 11px;
    line-height: 1.4;
}

.ch-auth-agency-company[hidden] {
    display: none !important;
}

.ch-auth-agency-company {
    margin-top: 12px;
}

@media (max-width: 991px) {

    body.re-account .ch-agency-account__head {
        flex-direction: column;
    }

    .ch-agency-status {
        min-width: 0;
        text-align: left;
    }

    .ch-agency-fields--3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {

    .ch-agency-fields--2,
    .ch-agency-fields--3,
    .ch-agency-options {
        grid-template-columns: 1fr;
    }

    .ch-agency-card__head,
    .ch-agency-fields,
    .ch-agency-options {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ch-agency-actions {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px;
    }

    .ch-agency-submit {
        width: 100%;
    }
}

@media (max-width: 575px) {

    .ch-auth-agency__choices {
        grid-template-columns: 1fr;
    }

    .ch-agency-account__head h1 {
        font-size: 26px;
    }
}