/* forms-refresh.css — one look for the request forms across the site (loaded from head-new.php).
 * Covers the pop-up form (common/modal_form.php, #exampleModal), the bottom quote form (common/small_form.php),
 * spotlight forms and the other .form-cst cards. Markup, placeholders and field order stay as they are:
 * js/script.js builds the POST keys from the placeholders, so only the look changes here.
 * The phone field's left padding is set inline by bl-phone.js (room for the flag) and is left alone. */

/* ---------- card ---------- */
html body .form-cst:not(.wrapper) {
    background: #fff;
    border: 1px solid #e7e4dd;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(18, 18, 17, .08);
    padding: 32px;
}
html body .form-cst :is(h3, h4, .mondaltitle) {
    display: block;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -.01em;
    color: #121211;
    margin: 0 0 6px;
}
html body .form-cst > p,
html body .form-cst .mondaltitle + p {
    font-size: 14px;
    line-height: 1.5;
    color: #6f6b63;
    margin: 0 0 20px;
}

/* ---------- fields ---------- */
html body :is(.form-cst, #exampleModal) .form-group { margin-bottom: 12px; }
html body :is(.form-cst, #exampleModal) .form-control,
html body :is(.form-cst, #exampleModal) .custom-tel-input .tel-input {
    height: 50px;
    border: 1px solid #e4e1da;
    border-radius: 12px;
    background: #f7f6f3;
    font-size: 15px;
    font-weight: 400;
    color: #121211;
    padding-right: 16px;
    box-shadow: none;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
html body :is(.form-cst, #exampleModal) .form-control { padding-left: 16px; }
html body :is(.form-cst, #exampleModal) textarea.form-control {
    height: auto !important;
    min-height: 108px;
    padding-top: 14px;
    padding-bottom: 14px;
    line-height: 1.5;
    resize: vertical;
}
html body :is(.form-cst, #exampleModal) :is(.form-control, .tel-input)::placeholder { color: #8f8a80; opacity: 1; }
html body :is(.form-cst, #exampleModal) :is(.form-control, .custom-tel-input .tel-input):hover { border-color: #cfcabf; }
html body :is(.form-cst, #exampleModal) :is(.form-control, .custom-tel-input .tel-input):focus {
    background: #fff;
    border-color: #121211;
    box-shadow: 0 0 0 3px rgba(18, 18, 17, .08);
    outline: none;
}
html body :is(.form-cst, #exampleModal) :is(.form-control, .tel-input).invalid,
html body :is(.form-cst, #exampleModal) .custom-tel-input.invalid .tel-input {
    border-color: #d14343;
    background: #fdf5f5;
}

/* ---------- consent row ---------- */
html body :is(.form-cst, #exampleModal) .form-check {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    padding-left: 0;
    margin: 4px 0 16px;
    text-align: left;
    color: #6f6b63;
}
html body :is(.form-cst, #exampleModal) .form-check .form-check-input {
    position: static;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: #121211;
    cursor: pointer;
}
html body :is(.form-cst, #exampleModal) .form-check-label {
    font-size: 13px;
    line-height: 1.45;
    color: #6f6b63;
    margin: 0;
}
html body :is(.form-cst, #exampleModal) .privacybutton {
    font-size: 13px;
    line-height: 1.45;
    color: #121211;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

/* ---------- submit ---------- */
html body :is(.form-cst, #exampleModal) .btn.cta-primary {
    height: 52px;
    border: 0;
    border-radius: 12px;
    background: #121211;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(18, 18, 17, .18);
    transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
html body :is(.form-cst, #exampleModal) .btn.cta-primary:hover,
html body :is(.form-cst, #exampleModal) .btn.cta-primary:focus-visible {
    background: #2d2b27;
    color: #fff;
    box-shadow: 0 10px 24px rgba(18, 18, 17, .24);
    transform: translateY(-1px);
}

/* ---------- "or call us" ---------- */
html body :is(.form-cst, #exampleModal) .order-no {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eeebe4;
    text-align: center;
}
html body :is(.form-cst, #exampleModal) .order-no p {
    font-size: 13px;
    color: #8f8a80;
    margin: 0 0 2px;
    font-weight: 400;
}
html body :is(.form-cst, #exampleModal) .order-no a {
    font-size: 18px;
    font-weight: 700;
    color: #121211;
    letter-spacing: .01em;
    text-decoration: none;
}
html body :is(.form-cst, #exampleModal) .order-no a:hover { color: #6b5d4a; }

/* ---------- shared fixes ---------- */
/* the pop-up inherits Inter from the modal styles; the site uses Gilroy */
html body #exampleModal .form-cst,
html body #exampleModal .form-cst :is(p, a, span, label, input, textarea, button, .mondaltitle) { font-family: Gilroy, Inter, "Helvetica Neue", Arial, sans-serif; }
/* blackheadernew.css gives every .wrapper 17px 30px padding, which pushed the fields in and down */
html body .form-cst .wrapper { padding: 0; }
html body #exampleModal .form-cst > p,
html body #exampleModal .form-cst .mondaltitle { text-align: left; }
html body #exampleModal .form-cst > p { margin-bottom: 22px; }
/* the caption over the photo was positioned against a nested bootstrap column (half the image width) */
html body .chauffeur-form-content [class*="col-"] { position: static; }

/* ---------- pop-up ---------- */
.modal-backdrop.show { opacity: .62; }
#exampleModal .modal-dialog { width: calc(100% - 32px); max-width: 460px; margin: 6vh auto; }
#exampleModal .modal-dialog .modal-content {
    position: relative;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}
#exampleModal .modal-content > .row { margin: 0; }
#exampleModal .modal-content > .row > [class*="col-"] { padding: 0; }
html body #exampleModal .form-cst {
    max-width: none;
    margin: 0;
    padding: 36px 32px 26px;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
    text-align: left;
}
#exampleModal .form-cst .mondaltitle { padding-right: 40px; }
#exampleModal .closelimomodal {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 36px;
    height: 36px;
    margin: 0;
    border-radius: 50%;
    background: #f3f1ec;
    color: #121211;
}
#exampleModal .closelimomodal:hover { background: #e7e4dd; }
#exampleModal .closelimomodal svg { width: 18px; height: 18px; }

/* ---------- photo next to the bottom form ---------- */
html body .chauffeur-form-content { position: relative; }
html body .service-form-image { position: relative; border-radius: 18px; overflow: hidden; }
html body .service-form-image img { display: block; border-radius: 0; }
html body .service-form-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .78) 100%);
    pointer-events: none;
}
html body .limousine-form-text h2 {
    position: absolute;
    z-index: 2;
    left: 32px !important;
    right: 32px;
    bottom: 32px !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0;
    text-align: left !important;
    font-size: 30px !important;
    line-height: 1.2;
    font-weight: 600 !important;
    color: #fff;
    text-transform: none;
}
html body .limousine-form-text h2 span { color: #fff !important; font-weight: 600; text-transform: none; }

@media (max-width: 767px) {
    html body .form-cst:not(.wrapper) { padding: 24px 20px; border-radius: 16px; }
    html body #exampleModal .form-cst { padding: 30px 20px 22px; }
    #exampleModal .modal-dialog { margin: 4vh auto; }
    html body .limousine-form-text h2 { left: 20px !important; right: 20px; bottom: 20px !important; font-size: 22px !important; }
}
