/*
 * Global page styling
 *
 * The warranty form should feel modern and refined.  We avoid the dated
 * blue accents from the previous version and instead lean on a palette
 * inspired by the Turkowiak and NOVA websites: warm whites, light
 * beiges and soft greys.  A contemporary sans–serif font stack is used
 * throughout to improve readability on screens.  The body has a
 * very light background to separate it from the form container.
 */
body {
    font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f4f1ed; /* warm off‑white backdrop */
    margin: 0;
    padding: 0;
    color: #333;
}

header.site-header, footer.site-footer {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: center; /* center the logo group */
    align-items: center;
    padding: 20px 0;
}

header.site-header a {
    display: flex;
    align-items: center;
    margin: 0 20px; /* gently separate the logos */
}

header.site-header img {
    max-height: 70px;
    height: 70px;
    width: auto;
}

/* Ensure header logos adjust on narrow screens. On small devices the two logos
 * wrap into a second line and center themselves so neither is truncated off
 * screen. */
@media (max-width: 600px) {
    header.site-header {
        flex-wrap: wrap;
    }
    header.site-header a {
        flex: 0 0 50%;
        justify-content: center;
        margin: 8px 0;
    }
    header.site-header img {
        max-height: 60px;
        height: 60px;
    }
}

footer.site-footer {
    margin-top: 60px;
    border-top: 1px solid #e0dcd6;
    padding-top: 30px;
    color: #5a5753;
    font-size: 0.85rem;
}

footer.site-footer .footer-col {
    flex: 1;
    text-align: center;
}

footer.site-footer img {
    max-height: 40px;
    height: 40px;
    width: auto;
    display: block;
    margin: 0 auto 10px;
}

/* footer links should match the site aesthetic rather than default blue */
footer.site-footer a {
    color: #5a5753;
    text-decoration: none;
    font-weight: 500;
}

footer.site-footer a:hover {
    text-decoration: underline;
}

/* Links inside the form container and labels should follow the same colour
 * palette as the rest of the application (no blue). */
/* Links inside the form container (including within labels) should use
 * our warm palette and avoid default blue even after being visited.  The
 * !important ensures specificity over browser defaults. */
.container a:link,
.container a:visited {
    color: #8c715a !important;
    text-decoration: underline;
}
.container a:hover {
    color: #755f4e !important;
}

/* Form container styles */
.container {
    max-width: 650px;
    margin: 40px auto;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 30px 40px 40px;
}

h1 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #3c3a37;
    font-size: 1.4rem;
    font-weight: 600;
}

label {
    display: block;
    margin-top: 18px;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #d0c8c0;
    border-radius: 6px;
    box-sizing: border-box;
    margin-top: 6px;
    background-color: #faf7f4;
    color: #333;
}

textarea {
    min-height: 80px;
}

button {
    margin-top: 25px;
    padding: 12px 26px;
    background-color: #8c715a; /* warm brown tone */
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

button:hover {
    background-color: #755f4e;
}

/* Error box styling */
.errors {
    background-color: #fcebea;
    border: 1px solid #f5c6cb;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 6px;
    color: #a94442;
}

 .errors li {
    color: #a94442;
    margin-left: 20px;
}

/* Info box styling */
.info {
    background-color: #f7f4ef;
    border-left: 4px solid #b5a08f;
    padding: 12px;
    margin-bottom: 20px;
    color: #5a5753;
}