/*
 * Public booking page (index.php): icons, form fields and footer.
 * Loaded after the older stylesheets so these rules win. Icons are Hugeicons (MIT), see tools/hugeicons/build.mjs.
 */

/* ---------------------------------------------------------------- icons */
.hgi {
    width: 1.15em;
    height: 1.15em;
    flex: none;
    vertical-align: -0.2em;
    fill: none;
    stroke: currentColor;
    overflow: visible;
}
.btn-slide .hgi { margin-right: 6px; }
.top-bar .hgi { width: 15px; height: 15px; vertical-align: -3px; margin-right: 2px; }

.social-share li a { display: inline-flex; align-items: center; justify-content: center; }
.social-share li a .hgi { width: 16px; height: 16px; vertical-align: 0; }

/* the four steps above the booking form */
.f1-step-icon { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.f1-step-icon .hgi { width: 20px; height: 20px; vertical-align: 0; }
.f1-step.active .f1-step-icon .hgi { width: 24px; height: 24px; }

/* ----------------------------------------------------------- form fields */
:root {
    --ui-border: #d3dae4;
    --ui-border-hover: #b6c0cf;
    --ui-text: #1f2937;
    --ui-muted: #6b7280;
    --ui-placeholder: #9aa3b2;
    --ui-focus: #3bb707;
    --ui-focus-ring: rgba(59, 183, 7, .18);
    --ui-error: #dc2626;
    --ui-radius: 10px;
}

body #appointmentfrm .form-control,
body #examresults .form-control,
body #contact-page .form-control,
body #appointmentlookupDialog .form-control,
body #appointmentlookupDialog input[type="text"] {
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius);
    background-color: #fff;
    color: var(--ui-text);
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
body #appointmentfrm .form-control:hover,
body #examresults .form-control:hover,
body #contact-page .form-control:hover { border-color: var(--ui-border-hover); }

body #appointmentfrm .form-control:focus,
body #examresults .form-control:focus,
body #contact-page .form-control:focus,
body #appointmentlookupDialog .form-control:focus,
body #appointmentlookupDialog input[type="text"]:focus {
    outline: 0;
    border-color: var(--ui-focus);
    box-shadow: 0 0 0 3px var(--ui-focus-ring);
}

body #appointmentfrm .form-control::placeholder,
body #examresults .form-control::placeholder,
body #contact-page .form-control::placeholder { color: var(--ui-placeholder); opacity: 1; }

/* validation (the page's script adds .ierror) */
body .ierror,
body #appointmentfrm .form-control.ierror,
body #contact-page .form-control.ierror {
    border-color: var(--ui-error) !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .12) !important;
}

/* labels */
body #examresults label,
body #contact-page .form-group > label,
body #appointmentlookupDialog label {
    margin-bottom: 6px;
    color: var(--ui-muted);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .01em;
    text-transform: none;
}

/* an icon at the left of the fields that have an obvious one */
body #f1-first-name, body #f1-middle-init, body #f1-last-name,
body #rfname, body #rmname, body #rlname, body #contactname, body #xfname, body #xlname,
body #f1-TRN, body #rtrn, body #xtrn,
body #f1-phone, body #phoneno,
body #f1-email, body #contactemail {
    padding-left: 44px !important;   /* !important: the base field rule above is more specific than these id selectors */
    background-repeat: no-repeat !important;
    background-position: 14px center !important;
    background-size: 19px 19px !important;
}
body #f1-first-name, body #f1-middle-init, body #f1-last-name,
body #rfname, body #rmname, body #rlname, body #contactname, body #xfname, body #xlname { background-image: var(--hgi-user) !important; }
body #f1-TRN, body #rtrn, body #xtrn { background-image: var(--hgi-id) !important; }
body #f1-phone, body #phoneno { background-image: var(--hgi-smartphone) !important; }
body #f1-email, body #contactemail { background-image: var(--hgi-mail) !important; }

/* drop-downs: our own arrow instead of the browser's */
body #appointmentfrm select.form-control,
body #examresults select.form-control,
body #contact-page select.form-control {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 40px;
    background-image: var(--hgi-chevron-down);
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 18px 18px;
}

/* the company list (select2) */
body #appointmentfrm .select2-container { width: 100% !important; }
body #appointmentfrm .select2-container--default .select2-selection--single {
    height: 46px;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius);
    background-color: #fff;
    outline: 0;
}
body #appointmentfrm .select2-container--default .select2-selection--single .select2-selection__rendered {
    height: 44px;
    padding: 0 40px 0 14px;
    color: var(--ui-text);
    font-size: 15px;
    line-height: 44px;
}
body #appointmentfrm .select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; right: 8px; }
body #appointmentfrm .select2-container--default.select2-container--focus .select2-selection--single,
body #appointmentfrm .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--ui-focus);
    box-shadow: 0 0 0 3px var(--ui-focus-ring);
}

/* message box */
body #contact-page textarea.form-control {
    height: auto;
    min-height: 150px;
    padding: 12px 14px;
    resize: vertical;
}

/* buttons that sit in these forms */
body #appointmentfrm .btn,
body #examresults .btn,
body #contact-page .btn,
body #appointmentlookupDialog .btn {
    height: 44px;
    border-radius: var(--ui-radius);
    font-size: 15px;
    font-weight: 500;
}

/* ---------------------------------------------------------------- footer */
.site-footer {
    --sf-bg: #14171c;
    --sf-bg-2: #0f1216;
    --sf-text: #aab2bf;
    --sf-head: #ffffff;
    --sf-line: rgba(255, 255, 255, .09);
    --sf-accent: #3bb707;
    position: relative;
    background: var(--sf-bg);
    color: var(--sf-text);
    font-size: 14px;
    line-height: 1.7;
    text-align: left;
}
.site-footer:before {   /* thin brand strip along the top */
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #3bb707, #03a9f4 55%, #f38424);
}
.site-footer a { color: var(--sf-text); text-decoration: none; transition: color .15s ease; }
.site-footer a:hover, .site-footer a:focus { color: #fff; text-decoration: none; }

.sf-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.25fr 1fr;
    gap: 40px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 56px 20px 40px;
}
.sf-col h4 {
    margin: 0 0 18px;
    padding-bottom: 12px;
    position: relative;
    color: var(--sf-head);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.sf-col h4:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 2px;
    background: var(--sf-accent);
}
.sf-brand img { display: block; width: 110px; height: auto; margin-bottom: 18px; border-radius: 8px; background: #fff; padding: 4px; }
.sf-brand p { margin: 0 0 20px; max-width: 340px; }

.sf-social { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sf-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--sf-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    color: #fff;
}
.sf-social a:hover { background: var(--sf-accent); border-color: var(--sf-accent); }
.sf-social .hgi { width: 18px; height: 18px; vertical-align: 0; }

.sf-links, .sf-contact { margin: 0; padding: 0; list-style: none; }
.sf-links li { margin: 0 0 9px; }
.sf-links a { display: inline-flex; align-items: center; gap: 8px; }
.sf-links a .hgi { width: 15px; height: 15px; vertical-align: 0; opacity: .55; transition: transform .15s ease, opacity .15s ease; }
.sf-links a:hover .hgi { transform: translateX(3px); opacity: 1; }

.sf-contact li { display: flex; gap: 12px; margin: 0 0 16px; }
.sf-contact .sf-ico {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(59, 183, 7, .14);
    color: #6fdc3f;
}
.sf-contact .sf-ico .hgi { width: 18px; height: 18px; vertical-align: 0; }
.sf-contact strong { display: block; color: var(--sf-head); font-weight: 600; font-size: 14px; line-height: 1.3; }
.sf-contact span, .sf-contact a { font-size: 14px; }

.sf-bottom { background: var(--sf-bg-2); border-top: 1px solid var(--sf-line); }
.sf-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 18px 20px;
    font-size: 13px;
}
.sf-bottom-inner a { color: var(--sf-text); }
.sf-bottom-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; }
.sf-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--sf-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    color: #fff !important;
}
.sf-top:hover { background: var(--sf-accent); border-color: var(--sf-accent); }
.sf-top .hgi { width: 15px; height: 15px; vertical-align: 0; }

@media (max-width: 991px) {
    .sf-main { grid-template-columns: 1fr 1fr; gap: 32px; padding: 44px 20px 28px; }
    .sf-brand { grid-column: 1 / -1; }
}
@media (max-width: 575px) {
    .sf-main { grid-template-columns: 1fr; gap: 28px; padding: 36px 18px 20px; }
    .sf-bottom-inner { flex-direction: column; align-items: flex-start; }
}
