/* Contact page styles */
label {
    color: white;
}

.main-title {
    font-size: 2em;
    margin-top: 0;
    color: #bfa14a;
    letter-spacing: 0.08em;
}

.subtitle-block {
    font-size: 1.1em;
    color: #e6d3a3;
    margin-bottom: 10px;
}

.subtitle-gold {
    font-style: italic;
    color: #bfa14a;
}

.subtitle-light {
    font-style: italic;
    color: #f0dca2;
}

.contact-info {
    width: 80%;
    margin: 24px auto;
    box-shadow: 0 4px 24px #0008;
    border-radius: 16px;
    padding: 24px;
    background: rgba(34, 48, 74, 0.95);
    border: 2.5px solid #bfa14a;
    color: #e6d3a3;
}

.message-area {
    height: 100px;
}


body {
    background: linear-gradient(135deg, #22304a 0%, #2d3e5e 100%);
    min-height: 100vh;
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #e6d3a3;
    margin: 0;
}


h1 {
    text-align: center;
    color: #e6d3a3;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 3em;
    margin: 40px 0 10px 0;
    letter-spacing: 0.1em;
    font-weight: bold;
    text-shadow: 0 2px 8px #0008;
}


h2 {
    text-align: left;
    color: #e6d3a3;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2em;
    margin: 30px 0 10px 0;
    letter-spacing: 0.05em;
    font-weight: bold;
    text-shadow: 0 1px 4px #0006;
}


nav.main-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 1.2em;
    margin-bottom: 30px;
}


.nav-link {
    color: #e6d3a3;
    text-decoration: none;
    font-weight: bold;
    padding: 12px 24px;
    border: 2px solid #bfa14a;
    border-radius: 24px;
    background: rgba(34, 48, 74, 0.7);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}


.nav-link:hover {
    background: #bfa14a;
    color: #22304a;
    border-color: #e6d3a3;
}


.nav-link.active {
    background: #bfa14a;
    color: #22304a;
    border-color: #ffd966;
}


input,
textarea,
select,
label,
button {
    font-size: 1.08em;
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #e6d3a3;
}

input,
textarea,
select {
    padding: 10px;
    border-radius: 6px;
    border: 1.5px solid #bfa14a;
    width: 100%;
    box-sizing: border-box;
    background: #22304a;
    margin-bottom: 10px;
}


button {
    background: #bfa14a;
    color: #22304a;
    font-weight: bold;
    border: 2px solid #bfa14a;
    cursor: pointer;
    border-radius: 24px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}


button:hover {
    background: #e6d3a3;
    color: #22304a;
}


/* Unified form style */
.styled-form {
    width: 80%;
    margin: 24px auto;
    box-shadow: 0 4px 24px #0008;
    border-radius: 16px;
    padding: 24px;
    background: rgba(34, 48, 74, 0.95);
    border: 2.5px solid #bfa14a;
    color: #e6d3a3;
}


a {
    color: #bfa14a;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

a:hover {
    color: #e6d3a3;
    text-decoration: underline;
}

ul,
li {
    color: #e6d3a3;
    font-size: 1.1em;
}

/* Elegant border for main content */
.header,
#rideForm {
    border: 2.5px solid #bfa14a;
    border-radius: 16px;
    box-shadow: 0 2px 16px #0006;
    background: rgba(34, 48, 74, 0.92);
}

.header {
    margin: 0 auto 30px auto;
    padding: 24px 0 10px 0;
    border-radius: 0 0 24px 24px;
    border-top: 0;
    text-align: center;
    background: linear-gradient(135deg, #22304a 60%, #2d3e5e 100%);
}

/* Mobile responsive styles */
@media screen and (max-width: 768px) {
    /* Header and title adjustments */
    h1 {
        font-size: 1.8em !important;
        margin: 20px 10px 10px 10px;
        letter-spacing: 0.05em;
    }

    h2 {
        font-size: 1.5em;
        margin: 20px 10px 10px 10px;
        padding: 0 10px;
    }

    /* Header positioning adjustments */
    .header {
        padding: 10px 0;
        margin-bottom: 20px;
    }

    /* Move Opérateur button below header content on mobile */
    #signInBtn {
        position: static !important;
        display: block;
        margin: 10px auto 15px auto !important;
        padding: 8px 20px !important;
        font-size: 1em !important;
    }

    /* Stack navigation vertically on mobile */
    nav.main-nav {
        flex-direction: column;
        gap: 10px;
        padding: 0 10px;
        margin-bottom: 20px;
    }

    .nav-link {
        display: block;
        text-align: center;
        padding: 10px 20px;
        font-size: 1em;
    }

    /* Adjust form and content widths for mobile */
    .styled-form,
    .contact-info {
        width: 90%;
        padding: 16px;
        margin: 16px auto;
    }

    /* Better mobile input sizing */
    input,
    textarea,
    select {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Service description and content areas */
    #serviceDescription {
        padding: 0 15px;
        font-size: 1em;
    }

    #serviceDescription p,
    #serviceDescription ul,
    #serviceDescription li {
        font-size: 1em;
    }

    /* Image sizing for mobile */
    img[alt="compagny card"] {
        width: 60% !important;
        max-width: 300px;
    }

    /* Adjust body text for readability */
    body {
        font-size: 16px;
    }

    /* Better button sizing on mobile */
    button {
        padding: 12px 24px;
        font-size: 1em;
        width: auto;
    }

    button[type="submit"] {
        width: 100%;
        margin-top: 10px;
    }
}

/* Extra small mobile devices */
@media screen and (max-width: 480px) {
    h1 {
        font-size: 1.5em !important;
        letter-spacing: 0.03em;
    }

    h2 {
        font-size: 1.3em;
    }

    .header > div > div {
        font-size: 0.95em !important;
    }

    nav.main-nav {
        gap: 8px;
    }

    .nav-link {
        padding: 8px 16px;
        font-size: 0.95em;
    }

    .styled-form,
    .contact-info {
        width: 95%;
        padding: 12px;
    }

    img[alt="compagny card"] {
        width: 80% !important;
    }
}