/* Feval Motor - Estilos del formulario de inscripción */

:root {
    --fm-blue: #1d4f9c;
    --fm-cyan: #1ea6d6;
    --fm-green: #2b9a48;
    --fm-yellow: #f6c315;
    --fm-orange: #f28c1c;
    --fm-red: #e4262f;
    --fm-ink: #1e2430;
}

body {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--fm-ink);
    background: linear-gradient(180deg, #f7f6f3 0%, #ecebe7 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Franja multicolor inspirada en el banner */
.fm-stripe {
    height: 8px;
    background: linear-gradient(90deg,
        var(--fm-blue) 0 16.66%, var(--fm-orange) 16.66% 33.33%,
        var(--fm-green) 33.33% 50%, var(--fm-yellow) 50% 66.66%,
        var(--fm-red) 66.66% 83.33%, var(--fm-cyan) 83.33% 100%);
}

.fm-header {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}
.fm-header img { height: 56px; width: auto; }

.fm-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.fm-section { position: relative; padding: 2.5rem 0 3rem; }

/* Formas geométricas decorativas (semicírculos del banner) */
.fm-shape { position: absolute; z-index: 0; pointer-events: none; }
.fm-shape.s1 { width: 160px; height: 80px; border-radius: 160px 160px 0 0; background: var(--fm-yellow); left: -40px; top: 120px; transform: rotate(90deg); }
.fm-shape.s2 { width: 140px; height: 70px; border-radius: 0 0 140px 140px; background: var(--fm-cyan); right: -30px; top: 40px; }
.fm-shape.s3 { width: 180px; height: 90px; border-radius: 180px 180px 0 0; background: var(--fm-blue); right: 6%; bottom: 0; }
.fm-shape.s4 { width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, var(--fm-red) 0 22%, transparent 22% 38%, var(--fm-red) 38% 54%, transparent 54% 70%, var(--fm-red) 70%); left: 5%; bottom: 30px; opacity: .9; }

.fm-card {
    position: relative;
    z-index: 1;
    background: #fff;
    border: 0;
    border-radius: 1.25rem;
    box-shadow: 0 18px 50px rgba(29, 79, 156, .15);
    overflow: hidden;
}

.fm-title {
    font-weight: 900;
    letter-spacing: -.5px;
    line-height: 1.05;
    text-transform: uppercase;
}
.fm-title .c1 { color: var(--fm-blue); }
.fm-title .c2 { color: var(--fm-orange); }
.fm-title .c3 { color: var(--fm-green); }
.fm-title .c4 { color: var(--fm-red); }

.fm-info {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.fm-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .85rem;
    border-radius: 50rem;
    font-weight: 700;
    font-size: .9rem;
    color: #fff;
}
.fm-chip.blue { background: var(--fm-blue); }
.fm-chip.red { background: var(--fm-red); }
.fm-chip.green { background: var(--fm-green); }

.form-label { font-weight: 700; font-size: .9rem; margin-bottom: .35rem; }
.form-label .bar {
    display: inline-block;
    width: 14px; height: 7px;
    border-radius: 14px 14px 0 0;
    margin-right: .4rem;
    vertical-align: middle;
}

.form-control {
    border: 2px solid #e1e4ea;
    border-radius: .75rem;
    padding: .8rem 1rem;
    font-size: 1rem; /* evita zoom automático en iOS */
    background-color: #fafbfc;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.form-control:focus {
    border-color: var(--fm-cyan);
    background-color: #fff;
    box-shadow: 0 0 0 .25rem rgba(30, 166, 214, .2);
}
.form-control.is-valid { border-color: var(--fm-green); }
.form-control.is-invalid { border-color: var(--fm-red); }

.btn-fm {
    position: relative;
    border: 0;
    border-radius: 50rem;
    padding: .95rem 1.5rem;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(90deg, var(--fm-orange), var(--fm-red));
    box-shadow: 0 8px 20px rgba(228, 38, 47, .3);
    transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn-fm:hover, .btn-fm:focus { color: #fff; filter: brightness(1.05); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(228, 38, 47, .35); }
.btn-fm:active { transform: translateY(0); }
.btn-fm:disabled { opacity: .75; }

.fm-success-icon {
    width: 84px; height: 84px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    background: var(--fm-green);
    color: #fff;
    font-size: 2.6rem;
    font-weight: 900;
}

.fm-footer { font-size: .85rem; color: #6b7280; }

.fm-site-footer {
    padding: 1.5rem 0;
    background: #fff;
    color: var(--fm-ink);
    font-size: .85rem;
}
.fm-legal-links a { color: var(--fm-blue); text-underline-offset: .2em; }
.fm-legal-links a:hover { color: var(--fm-ink); }
.fm-legal-links a:focus-visible {
    outline: 2px solid var(--fm-blue);
    outline-offset: 4px;
}
.fm-credit { flex-shrink: 0; }
.fm-credit img { display: block; width: 90px; height: auto; }

/* Móviles */
@media (max-width: 575.98px) {
    .fm-header img { height: 44px; }
    .fm-banner img {
        height: 170px;
        object-fit: cover;
        object-position: 72% center;
    }
    .fm-section { padding: 0 0 2rem; }
    .fm-card {
        margin-top: -1.5rem;
        border-radius: 1.25rem 1.25rem .75rem .75rem;
    }
    .fm-title { font-size: 1.6rem; }
    .fm-chip { font-size: .8rem; padding: .35rem .7rem; }
    .fm-shape { display: none; }
    .btn-fm { width: 100%; }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .fm-shape.s1, .fm-shape.s4 { display: none; }
}

/* Pantallas grandes: banner ampliado por los lados y con altura limitada */
@media (min-width: 992px) {
    .fm-banner img {
        height: clamp(240px, 18vw, 320px);
        object-fit: cover;
        object-position: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-fm, .form-control { transition: none; }
}

/* Fecha en la cabecera */
.fm-date { color: var(--fm-blue); }

/* Colores de los marcadores de cada campo */
.bar-blue { background: var(--fm-blue); }
.bar-orange { background: var(--fm-orange); }
.bar-green { background: var(--fm-green); }
.bar-yellow { background: var(--fm-yellow); }
.bar-red { background: var(--fm-red); }