/* ============================================================
   PREMIUM FORM REDESIGN — navins (gold / bronze theme)
   Clean outlined fields, soft focus glow, gradient pill submit,
   modern modal cards + styled intl-tel-input country dropdown.
   Scoped to the landing-page forms only (.up-form, #contact-form,
   .modal-body form) and loaded after style.css so it wins.
   Also folds in the phone-widget alignment (replaces intl-mobile.css).
   ============================================================ */

:root {
    --frm-gold: #d8a13a;
    --frm-gold-l: #f0c45a;
    --frm-bronze: #b06c45;
    --frm-bronze-d: #8c5333;
    --frm-ink: #2a2118;
    --frm-muted: #a39a8c;
    --frm-border: #e4ddcf;
    --frm-surface: #ffffff;
    --frm-glow: rgba(176, 108, 69, 0.16);
}

/* ---------- form container cards ---------- */
.up-form {
    background: var(--frm-surface) !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 50px rgba(42, 33, 24, 0.14) !important;
    /* NOT overflow:hidden — that would clip the country dropdown. Rounded
       top corners are handled by the header bar's own radius instead. */
    padding: 0 0 26px !important;
}

.reg-title {
    background: linear-gradient(135deg, var(--frm-bronze) 0%, var(--frm-bronze-d) 100%) !important;
    color: #fff !important;
    font-size: 17px !important;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 16px 12px !important;
    margin: 0 0 24px !important;
    border-radius: 16px 16px 0 0 !important;
    text-transform: uppercase;
    text-align: center;
}

/* ---------- normalise the Bootstrap grid inside the forms ----------
   The fields, disclaimer and button were laid out as floated col-md-12
   blocks with NO .row wrapper, so each had a different horizontal inset
   (12px field / 15px disclaimer / 0 button) and the floats never cleared.
   Flatten every column to a single full-width block with one shared inset
   so everything lines up perfectly. */
.up-form form,
#contact-form,
.modal-body form {
    display: block;
    text-align: left !important;   /* sections set text-align:center, which pushed
                                      error labels + disclaimer to the middle */
    max-width: 520px;              /* keep fields from stretching edge-to-edge on
                                      wide sections; centred for even gutters */
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 10px !important;
}

/* clearfix — contain floated children WITHOUT overflow:hidden, which would
   clip the intl-tel-input country dropdown */
.up-form form::after,
#contact-form::after,
.modal-body form::after {
    content: "";
    display: table;
    clear: both;
}

.up-form [class*="col-"],
#contact-form [class*="col-"],
.modal-body form [class*="col-"] {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ---------- input-group → clean block layout, drop the old boxed icons ---------- */
.up-form .input-group,
#contact-form .input-group,
.modal-body form .input-group {
    display: block !important;
    width: 100% !important;
    position: relative;
}

.up-form .input-group-addon,
#contact-form .input-group-addon,
.modal-body form .input-group-addon {
    display: none !important;
}

.up-form .form-group,
#contact-form .form-group,
.modal-body form .form-group {
    height: auto !important;
    margin-bottom: 18px !important;
    padding-left: 12px;
    padding-right: 12px;
}

/* ---------- fields: outlined, rounded, warm neutral border ---------- */
.up-form .form-control,
#contact-form .form-control,
.modal-body form .form-control,
.up-form input,
.up-form select {
    height: 52px !important;
    width: 100% !important;
    background: #fff !important;
    border: 1.5px solid var(--frm-border) !important;
    border-radius: 12px !important;
    padding: 0 16px !important;
    color: var(--frm-ink) !important;
    font-size: 15px !important;
    letter-spacing: 0.2px !important;
    box-shadow: none !important;
    /* Bootstrap 3 floats .input-group .form-control left; that float collapses
       the intl-tel-input .iti wrapper to 0 height. Clear it so every field is
       a normal full-width block. */
    float: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* custom caret for selects */
.up-form select,
.modal-body form select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    padding-right: 40px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23b06c45' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    cursor: pointer;
}

.up-form textarea,
#contact-form textarea,
.modal-body form textarea {
    height: auto !important;
    min-height: 96px !important;
    padding: 14px 16px !important;
    background: #fff !important;
    border: 1.5px solid var(--frm-border) !important;
    border-radius: 12px !important;
    color: var(--frm-ink) !important;
}

.up-form .form-control::placeholder,
#contact-form .form-control::placeholder,
.modal-body form .form-control::placeholder,
.up-form input::placeholder,
.modal-body form textarea::placeholder {
    color: var(--frm-muted) !important;
    opacity: 1;
}

.up-form .form-control:focus,
#contact-form .form-control:focus,
.modal-body form .form-control:focus,
.up-form input:focus,
.up-form select:focus,
.up-form textarea:focus,
.modal-body form textarea:focus {
    border-color: var(--frm-bronze) !important;
    box-shadow: 0 0 0 4px var(--frm-glow) !important;
    outline: none !important;
}

/* ---------- phone widget (intl-tel-input) ----------
   :not(.iti--container) is critical — the dropdown panel appended to <body>
   ALSO carries the .iti class. Without the exclusion these width/position
   rules collapse that panel and mis-place it behind the modal. */
.iti:not(.iti--container) {
    width: 100% !important;
    display: block !important;
    position: relative !important;
}

.iti .form-control.intl-mobile,
.up-form .form-control.intl-mobile,
#contact-form .form-control.intl-mobile,
.modal-body form .form-control.intl-mobile,
input.intl-mobile {
    height: 52px !important;
    background: #fff !important;
    border: 1.5px solid var(--frm-border) !important;
    border-radius: 12px !important;
    float: none !important;
    box-sizing: border-box !important;
    /* room for flag + up-to-4-digit dial code (e.g. +971) + dropdown arrow.
       The id-scoped selectors above are needed to beat #contact-form
       .form-control's padding, which otherwise lets the placeholder overlap
       the dial code. */
    padding-left: 96px !important;
}

/* flag/country button stretched to the full field height and centred */
.iti__selected-country,
.iti .iti__country-container {
    height: 52px !important;
    top: 0 !important;
    bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    /* padding-left: 14px !important; */
    background: transparent !important;
    border-radius: 12px 0 0 12px;
}

.iti__selected-country:hover,
.iti__selected-country-primary:hover {
    background: rgba(176, 108, 69, 0.05) !important;
}

.iti__selected-dial-code {
    color: var(--frm-ink) !important;
}

.iti__arrow {
    border-top-color: var(--frm-muted) !important;
}

/* ---------- premium pill submit button ---------- */
.up-form button[type="submit"],
.up-form .price-btn,
.up-form .form-btn,
#contact-form button[type="submit"],
#contact-form .price-btn,
#contact-form .form-btn,
.modal-body form button[type="submit"],
.modal-body form .price-btn,
.modal-body form .form-btn {
    display: block !important;
    width: auto !important;
    min-width: 200px;
    margin: 18px auto 0 !important;
    height: 52px !important;
    padding: 0 40px !important;
    border: none !important;
    border-radius: 100px !important;
    background: linear-gradient(135deg, var(--frm-gold-l) 0%, var(--frm-gold) 45%, var(--frm-bronze) 100%) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 10px 26px rgba(176, 108, 69, 0.34) !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease !important;
}

/* no hover/focus effect — keep the submit button identical to its default
   state (also neutralises the old style.css .price-btn/.form-btn hovers) */
.up-form button[type="submit"]:hover,
.up-form .price-btn:hover,
.up-form .form-btn:hover,
#contact-form button[type="submit"]:hover,
#contact-form .price-btn:hover,
#contact-form .form-btn:hover,
.modal-body form button[type="submit"]:hover,
.modal-body form .price-btn:hover,
.modal-body form .form-btn:hover,
.up-form button[type="submit"]:focus,
.up-form .price-btn:focus,
.up-form .form-btn:focus,
#contact-form button[type="submit"]:focus,
#contact-form .price-btn:focus,
#contact-form .form-btn:focus,
.modal-body form button[type="submit"]:focus,
.modal-body form .price-btn:focus,
.modal-body form .form-btn:focus {
    background: linear-gradient(135deg, var(--frm-gold-l) 0%, var(--frm-gold) 45%, var(--frm-bronze) 100%) !important;
    transform: none !important;
    box-shadow: 0 10px 26px rgba(176, 108, 69, 0.34) !important;
    color: #fff !important;
    border: none !important;
    filter: none !important;
}

/* kill the Hover.css "sweep-to-right" blue overlay on the submit buttons */
.up-form .hvr-sweep-to-right:before,
#contact-form .hvr-sweep-to-right:before,
.modal-body form .hvr-sweep-to-right:before {
    display: none !important;
    transform: none !important;
    background: transparent !important;
}

/* ---------- validation messages ---------- */
.up-form .error,
#contact-form .error,
.modal-body form .error {
    color: #c0392b !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    display: block;
    width: 100%;
    text-align: left !important;   /* was inheriting center from the section */
    margin: 15px 0 0 2px !important;
}

/* ---------- consent / disclaimer text ---------- */
.up-form .form-disc,
.up-form .form-disc-white,
#contact-form .form-disc,
#contact-form .form-disc-white,
.modal-body form .form-disc,
.modal-body form .form-disc-white {
    font-size: 12.5px !important;
    line-height: 1.55 !important;
    color: #837a6c !important;
    background: transparent !important;   /* .form-disc-white had a dark strip */
    padding: 0 !important;
    margin: 4px 0 8px !important;
    text-align: left !important;
}

.up-form .form-disc a,
.up-form .form-disc-white a,
#contact-form .form-disc a,
#contact-form .form-disc-white a,
.modal-body form .form-disc a,
.modal-body form .form-disc-white a {
    color: var(--frm-bronze) !important;
    font-weight: 600;
    text-decoration: underline;
}

/* ---------- modern modal card ---------- */
.modal-content {
    border: none !important;
    border-radius: 18px !important;
    box-shadow: 0 32px 80px rgba(42, 33, 24, 0.35) !important;
    /* overflow must stay visible so the country dropdown isn't clipped */
    overflow: visible !important;
}

/* round the header bar's top corners to replace the lost overflow clipping */
.modal-header {
    border-radius: 18px 18px 0 0 !important;
}

/* keep the bottom corners rounded over the visible overflow */
.modal-body {
    border-radius: 0 0 18px 18px;
}

.modal-body {
    padding: 30px 26px 32px !important;
}

.modal-body > p:first-of-type,
.modal-body form ~ p {
    color: var(--frm-muted) !important;
    font-size: 14px !important;
}

.modal-body p {
    color: #6f675b;
    font-size: 14px;
}

.modal-body .close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f4f0e8 !important;
    opacity: 1 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    right: 16px !important;
    top: 16px !important;
    text-shadow: none !important;
    transition: background 0.2s ease;
}

.modal-body .close:hover {
    background: #e9e1d2 !important;
}

.modal-body .close span {
    height: auto !important;
    width: auto !important;
    line-height: 1 !important;
    font-size: 22px !important;
    color: var(--frm-ink) !important;
}

/* ---------- intl-tel-input dropdown panel + search ----------
   Anchor the inline dropdown to start just BELOW the whole mobile input and
   span its full width (the plugin otherwise hangs it off the flag button). */
/* start the dropdown just below the mobile input, aligned to its left edge.
   (The offset parent is the narrow flag button, so use an explicit width
   rather than 100%.) */
.iti:not(.iti--container) .iti__dropdown-content {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    bottom: auto !important;
    left: 0 !important;
    right: auto !important;
    width: max-content !important;
    min-width: 300px !important;
    max-width: calc(100vw - 48px) !important;
    margin: 0 !important;
}

.iti__dropdown-content {
    background: #ffffff !important;
    color: var(--frm-ink) !important;
    border: 1px solid var(--frm-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 18px 44px rgba(42, 33, 24, 0.2) !important;
    overflow: hidden;
    z-index: 2000 !important;
}

.iti__search-input {
    width: 100% !important;
    padding: 12px 14px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--frm-border) !important;
    color: var(--frm-ink) !important;
    font-size: 14px !important;
    outline: none !important;
}

.iti__search-input::placeholder {
    color: var(--frm-muted) !important;
}

.iti__country-list {
    text-align: left;
    max-height: 230px;
    overflow-y: auto;
}

.iti__country {
    padding: 10px 14px !important;
    color: var(--frm-ink) !important;
}

.iti__dial-code {
    color: var(--frm-muted) !important;
}

.iti__country.iti__highlight,
.iti__country:hover {
    background: #fbf2e4 !important;
}

/* ============================================================
   CONTACT-US form → same premium card as the Overview form
   (.up-form). Turns the bare .form-wrap into a white rounded
   card with a bronze header bar floating on the contact bg.
   ============================================================ */
#contactus .form-wrap {
    background: var(--frm-surface) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.30) !important;
    /* no overflow:hidden — would clip the country dropdown */
    padding: 0 0 26px !important;
    max-width: 480px;
    margin: 0 auto 12px !important;
}

#contactus .form-wrap h1 {
    background: linear-gradient(135deg, var(--frm-bronze) 0%, var(--frm-bronze-d) 100%) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.6px !important;
    line-height: 1.45 !important;
    text-transform: uppercase;
    text-align: center !important;
    margin: 0 0 24px !important;
    padding: 16px 20px !important;
    border-radius: 16px 16px 0 0 !important;
}

/* mobile: stack every field full-width with breathing room */
@media (max-width: 767px) {

    .up-form .form-group,
    #contact-form .form-group,
    .modal-body form .form-group {
        width: 100% !important;
        float: none !important;
        margin-bottom: 16px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .modal-body {
        padding: 26px 18px 28px !important;
    }

    .iti .form-control.intl-mobile,
    input.intl-mobile {
        padding-left: 92px !important;
        padding-right: 12px !important;
    }
}
