/* =====================================================
   AGENCY NEXT STEPS
===================================================== */

.agency-next-steps {
    padding: 90px 0;
    background:
        radial-gradient(circle at top right, rgba(48, 186, 206, 0.10), transparent 32%),
        #ffffff;
}

.agency-next-steps__grid {
    display: grid;
    grid-template-columns: 1fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.agency-next-steps__content {
    max-width: 660px;
}

.agency-next-steps__content .section-label {
    margin-bottom: 16px;
}

.agency-next-steps__content h2 {
    margin: 0 0 18px;
    font-size: clamp(30px, 3vw, 34px);
    line-height: 1.12;
    letter-spacing: -0.04em;
    color: #202C33;
    font-weight: 900;
}

.agency-next-steps__content > p {
    margin: 0 0 30px;
    font-size: 17px;
    line-height: 1.75;
    color: #52616d;
}

.agency-next-steps__list {
    display: grid;
    gap: 18px;
}

.agency-next-step {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 18px;
    padding: 22px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e5ebf5;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.055);
}

.agency-next-step span {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #345CD2;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
}

.agency-next-step h3 {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.3;
    color: #202C33;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.agency-next-step p {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.7;
    color: #52616d;
}

/* IMAGE */
.agency-next-steps__media {
    position: relative;
}

.agency-next-steps__image-placeholder {
    position: relative;
    width: 100%;
    min-height: 520px;
    border-radius: 34px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(52, 92, 210, 0.16), rgba(48, 186, 206, 0.14)),
        #eef3ff;
    border: 1px solid #dbe6ff;
    box-shadow: 0 26px 64px rgba(15, 23, 42, 0.14);
}

.agency-next-steps__image-placeholder span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #345CD2;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.agency-next-steps__image-placeholder img,
.agency-next-steps__media img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    display: block;
    object-fit: cover;
    border-radius: 34px;
}

/* DECORATIVE DETAIL */
.agency-next-steps__media::before {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    right: -38px;
    top: -38px;
    border-radius: 999px;
    background: rgba(48, 186, 206, 0.18);
    filter: blur(4px);
    z-index: 0;
}

.agency-next-steps__media::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    left: -30px;
    bottom: -30px;
    border-radius: 999px;
    background: rgba(52, 92, 210, 0.14);
    filter: blur(4px);
    z-index: 0;
}

.agency-next-steps__image-placeholder,
.agency-next-steps__media img {
    position: relative;
    z-index: 1;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .agency-next-steps {
        padding: 76px 0;
    }

    .agency-next-steps__grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .agency-next-steps__content {
        max-width: 760px;
        margin: 0 auto;
        text-align: center;
    }

    .agency-next-step {
        text-align: left;
    }

    .agency-next-steps__image-placeholder,
    .agency-next-steps__image-placeholder img,
    .agency-next-steps__media img {
        min-height: 420px;
    }
}

@media (max-width: 768px) {
    .agency-next-steps {
        padding: 64px 0;
    }

    .agency-next-steps__content h2 {
        font-size: 31px;
    }

    .agency-next-steps__content > p {
        font-size: 16px;
        line-height: 1.7;
    }

    .agency-next-step {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 20px;
        border-radius: 20px;
    }

    .agency-next-steps__image-placeholder,
    .agency-next-steps__image-placeholder img,
    .agency-next-steps__media img {
        min-height: 340px;
        border-radius: 26px;
    }
}

@media (max-width: 480px) {
    .agency-next-steps {
        padding: 54px 0;
    }

    .agency-next-steps__content h2 {
        font-size: 28px;
    }

    .agency-next-step h3 {
        font-size: 18px;
    }

    .agency-next-step p {
        font-size: 15px;
    }

    .agency-next-steps__image-placeholder,
    .agency-next-steps__image-placeholder img,
    .agency-next-steps__media img {
        min-height: 280px;
        border-radius: 22px;
    }
}







/* =====================================================
   MARKETPLACE INTRO
===================================================== */

.marketplace-intro {
    padding: 96px 0;
    background:
        radial-gradient(circle at top left, rgba(48, 186, 206, 0.12), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f6f8fc 100%);
    overflow: hidden;
}

.marketplace-intro__grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 54px;
    align-items: center;
}

.marketplace-intro__content {
    max-width: 620px;
}

.marketplace-intro__content .section-label {
    margin-bottom: 18px;
}

.marketplace-intro__content h1 {
    margin: 0;
    font-size: clamp(30px, 3vw, 34px);
    line-height: 1.05;
    letter-spacing: -0.045em;
    color: #202C33;
    font-weight: 900;
}

.marketplace-intro__content p {
    margin: 22px 0 0;
    font-size: 18px;
    line-height: 1.75;
    color: #52616d;
}

.marketplace-intro__media {
    position: relative;
}

.marketplace-intro__image-placeholder {
    position: relative;
    width: 100%;
    min-height: 520px;
    border-radius: 34px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(52, 92, 210, 0.18), rgba(48, 186, 206, 0.16)),
        #eef3ff;
    border: 1px solid #dbe6ff;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
}

.marketplace-intro__image-placeholder span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #345CD2;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Si reemplazas el placeholder por una imagen */
.marketplace-intro__image-placeholder img,
.marketplace-intro__media img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    display: block;
    object-fit: cover;
    border-radius: 34px;
}

/* DECORATIVE DETAIL */
.marketplace-intro__media::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -42px;
    top: -42px;
    border-radius: 999px;
    background: rgba(48, 186, 206, 0.18);
    filter: blur(4px);
    z-index: 0;
}

.marketplace-intro__media::after {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    left: -34px;
    bottom: -34px;
    border-radius: 999px;
    background: rgba(52, 92, 210, 0.14);
    filter: blur(4px);
    z-index: 0;
}

.marketplace-intro__image-placeholder,
.marketplace-intro__media img {
    position: relative;
    z-index: 1;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .marketplace-intro {
        padding: 78px 0;
    }

    .marketplace-intro__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .marketplace-intro__content {
        max-width: 760px;
        text-align: center;
        margin: 0 auto;
    }

    .marketplace-intro__image-placeholder,
    .marketplace-intro__image-placeholder img,
    .marketplace-intro__media img {
        min-height: 430px;
    }
}

@media (max-width: 768px) {
    .marketplace-intro {
        padding: 64px 0;
    }

    .marketplace-intro__content h1 {
        font-size: 36px;
    }

    .marketplace-intro__content p {
        font-size: 16px;
        line-height: 1.7;
    }

    .marketplace-intro__image-placeholder,
    .marketplace-intro__image-placeholder img,
    .marketplace-intro__media img {
        min-height: 340px;
        border-radius: 26px;
    }
}

@media (max-width: 480px) {
    .marketplace-intro {
        padding: 54px 0;
    }

    .marketplace-intro__grid {
        gap: 30px;
    }

    .marketplace-intro__content h1 {
        font-size: 32px;
    }

    .marketplace-intro__content p {
        font-size: 15.5px;
    }

    .marketplace-intro__image-placeholder,
    .marketplace-intro__image-placeholder img,
    .marketplace-intro__media img {
        min-height: 280px;
        border-radius: 22px;
    }
}

/* =====================================================
   REGISTER AGENCY HERO
===================================================== */

.register-agency-hero {
    padding: 96px 0 74px;
    background:
        radial-gradient(circle at top left, rgba(48, 186, 206, 0.18), transparent 34%),
        linear-gradient(135deg, #345CD2 0%, #243F9D 100%);
    color: #ffffff;
    overflow: hidden;
}

.register-agency-hero__content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.register-agency-hero .section-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.register-agency-hero h1 {
    margin: 0;
    font-size: clamp(30px, 3vw, 34px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 800;
    color: #ffffff;
}

.register-agency-hero p {
    max-width: 720px;
    margin: 22px auto 0;
    font-size: 18px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 768px) {

    .register-agency-hero {
        padding: 82px 0 58px;
    }

    .register-agency-hero p {
        font-size: 16px;
        line-height: 1.7;
    }

}

@media (max-width: 480px) {

    .register-agency-hero {
        padding: 72px 0 50px;
    }

    .register-agency-hero h1 {
        font-size: 34px;
    }

    .register-agency-hero p {
        font-size: 15.5px;
    }

}


/* =====================================================
   AGENCY PLATFORM SECTION
===================================================== */

.agency-platform {
    padding: 90px 0;
    background: #ffffff;
}

.agency-platform__header {
    max-width: 820px;
    margin: 0 auto 42px;
    text-align: center;
}

.agency-platform__header h2 {
    margin: 12px 0 18px;
    font-size: clamp(30px, 3vw, 34px);
    line-height: 1.12;
    letter-spacing: -0.035em;
    color: #202C33;
    font-weight: 800;
}

.agency-platform__header p {
    max-width: 720px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.75;
    color: #52616d;
}

.agency-platform__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.agency-platform-card {
    padding: 28px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid #e5ebf5;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.agency-platform-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.agency-platform-card__number {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 16px;
    background: #345CD2;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
}

.agency-platform-card h3 {
    margin: 0 0 12px;
    font-size: 21px;
    line-height: 1.25;
    color: #202C33;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.agency-platform-card p {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.75;
    color: #52616d;
}


/* =====================================================
   FUTURE TOOLS
===================================================== */

.agency-platform__future {
    margin-top: 34px;
    padding: 34px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(48, 186, 206, 0.14), transparent 28%),
        linear-gradient(135deg, #f6f8fc 0%, #ffffff 100%);
    border: 1px solid #e5ebf5;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.agency-platform__future span {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef3ff;
    color: #345CD2;
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.agency-platform__future p {
    margin: 0;
    max-width: 900px;
    font-size: 16.5px;
    line-height: 1.75;
    color: #52616d;
}


/* =====================================================
   NOTICE
===================================================== */

.agency-platform__notice {
    margin-top: 20px;
    padding: 18px 22px;
    border-radius: 18px;
    background: #fff8e6;
    border: 1px solid #f2d38b;
    color: #70521b;
    font-size: 15.5px;
    line-height: 1.65;
}

.agency-platform__notice strong {
    color: #4d370e;
    font-weight: 800;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1024px) {

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

}

@media (max-width: 768px) {

    .agency-platform {
        padding: 64px 0;
    }

    .agency-platform__header {
        margin-bottom: 30px;
    }

    .agency-platform__header h2 {
        font-size: 31px;
    }

    .agency-platform__header p {
        font-size: 16px;
    }

    .agency-platform__grid {
        grid-template-columns: 1fr;
    }

    .agency-platform-card {
        padding: 24px;
        border-radius: 22px;
    }

    .agency-platform__future {
        padding: 26px;
        border-radius: 24px;
    }

}

@media (max-width: 480px) {

    .agency-platform__header h2 {
        font-size: 28px;
    }

    .agency-platform-card,
    .agency-platform__future {
        padding: 22px;
    }

    .agency-platform__notice {
        padding: 16px;
        font-size: 14.5px;
    }

}


/* =====================================================
   REGISTER AGENCY FORM
===================================================== */

.register-agency-form {
  padding: 90px 0;
  background: #f6f8fc;
  margin-top: 50px;
  margin-bottom: 50px;
}

.register-card {
    width: 100%;
    margin: 0 auto;
    padding: 42px;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid #e5ebf5;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.register-header {
    max-width: 720px;
    margin: 0 auto 34px;
    text-align: center;
}

.register-header .section-label {
    margin-bottom: 14px;
}

.register-header h2 {
    margin: 0 0 12px;
    font-size: clamp(30px, 3.5vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.035em;
    color: #202C33;
    font-weight: 800;
}

.register-header p {
    margin: 0;
    font-size: 16.5px;
    line-height: 1.75;
    color: #52616d;
}


/* =====================================================
   FORM STRUCTURE
===================================================== */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 700;
    color: #334155;
}

.form-group input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #d8e0ec;
    border-radius: 14px;
    background: #ffffff;
    color: #202C33;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    border-color: #345CD2;
    box-shadow: 0 0 0 4px rgba(52, 92, 210, 0.12);
}

.form-full {
    grid-column: span 2;
}

.optional-title {
    margin: 34px 0 18px;
    padding-top: 26px;
    border-top: 1px solid #e5ebf5;
    font-size: 18px;
    font-weight: 800;
    color: #202C33;
}


/* =====================================================
   COMMERCIAL NOTICE / TERMS
===================================================== */

.commercial-notice {
    margin-top: 28px;
    padding: 18px 20px;
    border-radius: 18px;
    background: #eef3ff;
    border: 1px solid #dbe6ff;
    color: #435161;
    font-size: 15px;
    line-height: 1.65;
}

.commercial-notice strong {
    color: #243F9D;
    font-weight: 800;
}

.terms-box {
    margin: 22px 0 26px;
    padding: 18px 20px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e5ebf5;
    color: #435161;
    font-size: 14.5px;
    line-height: 1.6;
}

.terms-box label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.terms-box input {
    width: 17px;
    height: 17px;
    margin-top: 3px;
    flex: 0 0 auto;
}

.terms-link {
    display: inline-flex;
    margin-top: 12px;
    padding: 0;
    border: none;
    background: transparent;
    color: #345CD2;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: underline;
}

.terms-link:hover {
    color: #243F9D;
}


/* =====================================================
   SUBMIT / MESSAGE
===================================================== */

.btn-submit {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 16px;
    background: #345CD2;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit:hover {
    background: #243F9D;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(52, 92, 210, 0.22);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-message {
    display: none;
    margin-bottom: 22px;
    padding: 15px 17px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
}

.form-message.success {
    display: block;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.form-message.error {
    display: block;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 768px) {

    .register-agency-form {
        padding: 64px 0;
    }

    .register-card {
        padding: 30px 22px;
        border-radius: 24px;
    }

    .register-header {
        margin-bottom: 28px;
    }

    .register-header h2 {
        font-size: 31px;
    }

    .register-header p {
        font-size: 16px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-full {
        grid-column: span 1;
    }

}

@media (max-width: 480px) {

    .register-card {
        padding: 26px 18px;
    }

    .register-header h2 {
        font-size: 28px;
    }

    .commercial-notice,
    .terms-box {
        padding: 16px;
    }

    .btn-submit {
        height: 50px;
    }

}












/* =====================================================
   AGENCY TERMS MODAL
===================================================== */

body.modal-open {
    overflow: hidden;
}

.agency-terms-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.agency-terms-modal.active {
    display: flex;
}

.agency-terms-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(5px);
}

.agency-terms-modal__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 880px;
    max-height: calc(100vh - 48px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid #e5ebf5;
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.28);
    overflow: hidden;
}

.agency-terms-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: #ffffff;
    color: #202C33;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    transition: background 0.2s ease, transform 0.2s ease;
}

.agency-terms-modal__close:hover {
    background: #eef3ff;
    transform: rotate(90deg);
}


/* =====================================================
   MODAL HEADER
===================================================== */

.agency-terms-modal__header {
    padding: 36px 42px 26px;
    background:
        radial-gradient(circle at top right, rgba(48, 186, 206, 0.14), transparent 30%),
        linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    border-bottom: 1px solid #e5ebf5;
}

.agency-terms-modal__header .section-label {
    margin-bottom: 14px;
}

.agency-terms-modal__header h2 {
    max-width: 720px;
    margin: 0 52px 10px 0;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.12;
    letter-spacing: -0.04em;
    color: #202C33;
    font-weight: 800;
}

.agency-terms-modal__header p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: #64748b;
}


/* =====================================================
   MODAL BODY
===================================================== */

.agency-terms-modal__body {
    padding: 34px 42px;
    overflow-y: auto;
    background: #ffffff;
}

.agency-terms-modal__body h3 {
    margin: 28px 0 10px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #eef3ff;
    color: #243F9D;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 800;
}

.agency-terms-modal__body h3:first-child {
    margin-top: 0;
}

.agency-terms-modal__body p {
    margin: 0 0 16px;
    padding-left: 16px;
    border-left: 3px solid #e5ebf5;
    font-size: 15.5px;
    line-height: 1.78;
    color: #52616d;
}

.agency-terms-modal__body p:last-child {
    margin-bottom: 0;
}


/* =====================================================
   MODAL FOOTER
===================================================== */

.agency-terms-modal__footer {
    padding: 22px 42px 30px;
    background: #f8fafc;
    border-top: 1px solid #e5ebf5;
}

.agency-terms-modal__footer .btn-submit {
    max-width: 240px;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 768px) {

    .agency-terms-modal {
        align-items: flex-start;
        padding: 12px;
    }

    .agency-terms-modal__content {
        max-height: calc(100dvh - 24px);
        display: block;
        overflow-y: auto;
        border-radius: 22px;
    }

    .agency-terms-modal__close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .agency-terms-modal__header {
        padding: 28px 22px 22px;
    }

    .agency-terms-modal__header h2 {
        margin-right: 42px;
        font-size: 28px;
    }

    .agency-terms-modal__header p {
        font-size: 14px;
    }

    .agency-terms-modal__body {
        padding: 24px 22px;
        overflow: visible;
    }

    .agency-terms-modal__body h3 {
        margin-top: 24px;
        padding: 13px 14px;
        border-radius: 14px;
        font-size: 16px;
    }

    .agency-terms-modal__body p {
        padding-left: 14px;
        font-size: 14.8px;
        line-height: 1.72;
    }

    .agency-terms-modal__footer {
        padding: 20px 22px 24px;
    }

    .agency-terms-modal__footer .btn-submit {
        max-width: none;
        width: 100%;
    }

}

@media (max-width: 480px) {

    .agency-terms-modal {
        padding: 8px;
    }

    .agency-terms-modal__content {
        max-height: calc(100dvh - 16px);
        border-radius: 20px;
    }

    .agency-terms-modal__header {
        padding: 24px 18px 20px;
    }

    .agency-terms-modal__header h2 {
        font-size: 25px;
        line-height: 1.15;
    }

    .agency-terms-modal__body {
        padding: 22px 18px;
    }

    .agency-terms-modal__body h3 {
        font-size: 15.5px;
    }

    .agency-terms-modal__body p {
        font-size: 14.3px;
    }

    .agency-terms-modal__footer {
        padding: 18px;
    }

}


/* =====================================================
   AGENCY BENEFITS SECTION
===================================================== */

.agency-benefits {
    padding: 90px 0;
    background: #ffffff;
}

.agency-benefits__header {
    max-width: 860px;
    margin: 0 auto 42px;
    text-align: center;
}

.agency-benefits__header h2 {
    margin: 12px 0 18px;
    font-size: clamp(30px, 3vw, 34px);
    line-height: 1.12;
    letter-spacing: -0.035em;
    color: #202C33;
    font-weight: 800;
}

.agency-benefits__header p {
    max-width: 760px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.75;
    color: #52616d;
}

.agency-benefits__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.agency-benefit-card {
    position: relative;
    padding: 30px 26px;
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(48, 186, 206, 0.10), transparent 34%),
        #ffffff;
    border: 1px solid #e5ebf5;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.agency-benefit-card:hover {
    transform: translateY(-4px);
    border-color: #dbe6ff;
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.085);
}

.agency-benefit-card__icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 16px;
    background: #345CD2;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
}

.agency-benefit-card h3 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.25;
    color: #202C33;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.agency-benefit-card p {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.75;
    color: #52616d;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .agency-benefits__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .agency-benefits {
        padding: 64px 0;
    }

    .agency-benefits__header {
        margin-bottom: 30px;
    }

    .agency-benefits__header h2 {
        font-size: 31px;
    }

    .agency-benefits__header p {
        font-size: 16px;
    }

    .agency-benefits__grid {
        grid-template-columns: 1fr;
    }

    .agency-benefit-card {
        padding: 24px;
        border-radius: 22px;
    }
}

@media (max-width: 480px) {
    .agency-benefits__header h2 {
        font-size: 28px;
    }

    .agency-benefit-card {
        padding: 22px;
    }

    .agency-benefit-card h3 {
        font-size: 19px;
    }

    .agency-benefit-card p {
        font-size: 15px;
    }
}