/* ═══════════════════════════════════════════════════════════════
   DESIGN TOKENS — extracted from brand background
═══════════════════════════════════════════════════════════════ */
:root {
    --navy:       #0d1b3a;
    --navy-light: #162040;
    --red:        #c8102e;
}

/* ═══════════════════════════════════════════════════════════════
   BASE
═══════════════════════════════════════════════════════════════ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--navy);
    min-height: 100vh;
    text-align: center;
    position: relative;
    overflow-x: hidden;
}



/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY GLOBALS
═══════════════════════════════════════════════════════════════ */
h1 {
    font-family: 'Playfair Display', serif;
    font-size: 10px;
    color: white;
    font-weight: 600;
    padding-bottom: 10px;
}

p {
    color: #d2d2d2;
}

p,
input,
textarea,
label {
    font-family: 'Poppins', sans-serif;
}

/* ═══════════════════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════════════════ */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 5%;
    position: relative; /* sits above ::before / ::after */
    z-index: 1;
}

form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
    padding: 20px 0;
}

/* ═══════════════════════════════════════════════════════════════
   FORM FIELDS
═══════════════════════════════════════════════════════════════ */
input,
textarea,
label {
    display: block;
    margin: 0 auto;
    width: 100%;
    color: #8a9ec0;  /* blue-tinted grey to complement the navy */
}

input,
textarea {
    background-color: transparent;
    border: 0;
    border-bottom: 2px solid #3a4f78; /* navy-tinted border */
}

input[type=submit] {
    background-color: #c8102e;
    padding: 15px 0;
    color: white;
    font-size: 18px;
    border-bottom: none;
    margin-top: 30px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    letter-spacing: 0.04em;
}

input[type=submit]:hover {
    background: #ffffff;
    color: var(--navy);
}

input,
textarea {
    color: white;
    font-size: 18px;
    padding: 10px;
}

input:focus,
textarea:focus {
    outline: 1px solid #6e80a8;
}

a {
    color: #8a9ec0;
    font-style: italic;
}

a:hover {
    color: #fff;
}


/* ═══════════════════════════════════════════════════════════════
   AUTOCOMPLETE
═══════════════════════════════════════════════════════════════ */
.autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.autocomplete-wrapper input {
    width: 100%;
}

.autocomplete-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #101e3a;
    border: 1px solid #3a4f78;
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 999;
    max-height: 210px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #3a4f78 #101e3a;
}

.autocomplete-dropdown::-webkit-scrollbar        { width: 5px; }
.autocomplete-dropdown::-webkit-scrollbar-track  { background: #101e3a; }
.autocomplete-dropdown::-webkit-scrollbar-thumb  { background: #3a4f78; border-radius: 3px; }

.autocomplete-item {
    padding: 10px 14px;
    color: #9aacc8;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
    border-bottom: 1px solid #1a2a4a;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background: var(--red);
    color: #ffffff;
}

/* Highlighted matching characters */
.autocomplete-item mark {
    background: transparent;
    color: #ffffff;
    font-weight: 700;
}


/* ═══════════════════════════════════════════════════════════════
   PHONE VALIDATION FEEDBACK
═══════════════════════════════════════════════════════════════ */
.error-msg {
    display: none;
    color: #ff5a5a;
    font-size: 12.5px;
    font-family: 'Poppins', sans-serif;
    margin-top: 6px;
    margin-bottom: 4px;
    line-height: 1.4;
}

input.input-error {
    border-bottom-color: #ff5a5a;
}

input.input-error:focus {
    outline-color: #ff5a5a;
}
