/* ReUnited – landing popup form (scoped with .ru-) */
.ru-modal .modal-dialog { max-width: 520px; }

.ru-modal .modal-content {
    background: #f4f4f4;
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(13, 19, 33, .35);
}

/* gradient accent bar – same gradient as hero / CTA */
.ru-modal .modal-content::before {
    content: "";
    display: block;
    height: 8px;
    background-image: linear-gradient(210deg, #f8be53 1.04%, #ee7201 72%);
}

.ru-close {
    position: absolute;
    top: 22px;
    right: 18px;
    z-index: 5;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #0d1321;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    transition: background .2s, color .2s, transform .2s;
}
.ru-close:hover { background: #ee7201; color: #fff; transform: rotate(90deg); }

.ru-body { padding: 34px 40px 36px; }

.ru-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: #0d1321;
    margin: 0 0 4px;
}
.ru-title span { color: #ee7201; }
/* override the site-wide h2::after blue underline */
.ru-modal .ru-title { margin: 0 0 8px; font-weight: 700; }
.ru-modal .ru-title::after { display: none; }

.ru-sub {
    text-align: center;
    font-size: 15px;
    font-weight: 300;
    color: #3b4f60;
    margin: 0 0 22px;
}

.ru-field { position: relative; margin-bottom: 12px; padding-left: 16px; }
.ru-field .ru-req {
    position: absolute;
    left: 0;
    top: 10px;
    color: #ee7201;
    font-weight: 700;
    font-size: 16px;
}

.ru-input {
    width: 100%;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 15px;
    color: #0d1321;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.ru-input::placeholder { color: #b4b9c2; }
.ru-input:focus {
    border-color: #ee7201;
    box-shadow: 0 0 0 3px rgba(238, 114, 1, .18);
}
.ru-input.ru-invalid { border-color: #d93025; }
textarea.ru-input { resize: vertical; min-height: 84px; }

.ru-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0 18px;
    padding-left: 16px;
    position: relative;
    font-size: 14px;
    line-height: 1.5;
    color: #0d1321;
}
.ru-consent .ru-req { position: absolute; left: 0; top: 1px; color: #ee7201; font-weight: 700; font-size: 16px; }
.ru-consent input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: #ee7201;
    cursor: pointer;
}
.ru-consent a { color: #ee7201; text-decoration: none; font-weight: 500; }
.ru-consent a:hover { text-decoration: underline; }

.ru-submit {
    display: block;
    margin: 0 auto;
    min-width: 230px;
    padding: 14px 34px;
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background-image: linear-gradient(210deg, #f8be53 1.04%, #ee7201 72%);
    cursor: pointer;
    transition: transform .25s, box-shadow .25s, opacity .2s;
}
.ru-submit:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(238, 114, 1, .35); }
.ru-submit:disabled { opacity: .65; cursor: wait; transform: none; box-shadow: none; }

.ru-msg {
    text-align: center;
    font-size: 15px;
    margin-top: 14px;
    min-height: 0;
}
.ru-msg.ok  { color: #1e8e3e; font-weight: 500; }
.ru-msg.err { color: #d93025; }

/* honeypot – hidden from humans */
.ru-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 575.98px) {
    .ru-body { padding: 28px 20px 28px; }
    .ru-title { font-size: 21px; padding: 0 28px; }
    .ru-submit { width: 100%; min-width: 0; }
}

/* contact page card (reuses popup field styles) */
.ru-contact { padding-bottom: 28px !important; margin-top: 0 !important; }
.ru-contact .ru-submit { margin-top: 4px; }
.ru-contact .ru-consent { padding-left: 0; }

/* contact hero: grayscale only the background image, keep theme colours on the form */
.ru-contact-hero { position: relative; color: #fff; min-height: 680px; padding: 40px 0 150px; overflow: hidden; align-items: flex-start !important; }
.ru-contact-hero > .row > .col-md-6:first-child { align-self: center; }
.ru-contact-hero::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)), url('contact.jpg') center / cover no-repeat;
    filter: grayscale(40%);
}
.ru-contact-hero > .row { position: relative; z-index: 1; width: 100%; margin: 0; }
@media (max-width: 767.98px) { .ru-contact-hero { min-height: 0; padding: 30px 12px 140px; } }
