/* --- Global ---------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
        sans-serif;
    background: #f9fbfe;
    color: #37474f;
    margin: 0;
    line-height: 1.5;
}

/* --- Layout ---------------------------------------------------- */
.container {
    max-width: 640px;
    margin: 40px auto;
    padding: 0 1.25rem;
}

/* --- Links & Buttons ------------------------------------------ */
a.return-home-btn {
    display: inline-block;
    margin-bottom: 18px;
    color: #1976d2;
    background: #e3f0fc;
    padding: 7px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
}

a.return-home-btn:hover {
    background: #1976d2;
    color: #fff;
    text-decoration: underline;
}

button.btn {
    background: #1976d2;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

button.btn:hover {
    background: #0f5db5;
}

/* --- Form ------------------------------------------------------ */
form {
    display: grid;
    gap: 0.75rem;
}

label {
    font-weight: 600;
}

input[type="text"],
input[type="tel"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    font-size: 1rem;
    background: #f4f8fb;
    transition: border 0.2s, background 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #1976d2;
    background: #fff;
    outline: none;
}

/* read-only clinic location field */
#location_display {
    background: #f4f8fb;
}

/* intl-tel-input fixes */
.iti {
    width: 100%;
}

.iti input[type="tel"] {
    padding-left: 52px !important;
    /* keep flag spacing */
}