/* ==========================================================
   TRANSPORTE MULTICARGAS — FORMULARIO MÓVIL
   Archivo independiente: css/formulario-movil.css
   ========================================================== */

:root {
    --mobile-blue: #002f62;
    --mobile-blue-light: #0a4c8d;
    --mobile-red: #d7192d;
    --mobile-text: #172033;
    --mobile-text-soft: #66758a;
    --mobile-border: #cbd4de;
    --mobile-white: #ffffff;
}

html {
    min-width: 320px;
    min-height: 100%;
    background: #edf2f6;
}

body.mc-mobile-contact-page,
body.mc-mobile-contact-page *,
body.mc-mobile-contact-page *::before,
body.mc-mobile-contact-page *::after {
    box-sizing: border-box;
}

body.mc-mobile-contact-page {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background:
        radial-gradient(
            circle at 85% 5%,
            rgba(10, 76, 141, 0.13),
            transparent 28%
        ),
        linear-gradient(180deg, #f7f9fb 0%, #edf2f6 100%);
    color: var(--mobile-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

body.mc-mobile-contact-page input,
body.mc-mobile-contact-page textarea,
body.mc-mobile-contact-page button {
    font: inherit;
}


/* Header */

.mc-mobile-header {
    width: 100%;
    padding:
        max(18px, env(safe-area-inset-top))
        18px
        13px;
    border-bottom: 1px solid rgba(0, 47, 98, 0.08);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 18px rgba(16, 39, 68, 0.06);
}

.mc-mobile-header__logo {
    display: block;
    width: min(230px, 70vw);
    margin: 0 auto;
}

.mc-mobile-header__logo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 72px;
    object-fit: contain;
}


/* Contenedor */

.mc-mobile-main {
    width: min(calc(100% - 28px), 470px);
    margin: 0 auto;
    padding: 24px 0 max(34px, env(safe-area-inset-bottom));
}

.mc-mobile-card {
    overflow: hidden;
    border: 1px solid rgba(0, 47, 98, 0.08);
    border-radius: 18px;
    background: var(--mobile-white);
    box-shadow: 0 14px 38px rgba(16, 39, 68, 0.14);
}

.mc-mobile-card__heading {
    padding: 27px 22px 24px;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(10, 76, 141, 0.11),
            transparent 34%
        ),
        #ffffff;
    text-align: center;
}

.mc-mobile-card__heading > p:first-child {
    margin: 0 0 6px;
    color: #66758a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.10em;
    line-height: 1.4;
    text-transform: uppercase;
}

.mc-mobile-card__heading h1 {
    margin: 0;
    color: #082f5c;
    font-size: clamp(27px, 8vw, 34px);
    font-weight: 800;
    letter-spacing: -0.6px;
    line-height: 1.12;
    text-transform: uppercase;
}

.mc-mobile-card__heading > span {
    display: block;
    width: 42px;
    height: 3px;
    margin: 15px auto;
    border-radius: 999px;
    background: var(--mobile-red);
}

.mc-mobile-card__heading > p:last-child {
    max-width: 350px;
    margin: 0 auto;
    color: var(--mobile-text-soft);
    font-size: 14px;
    line-height: 1.65;
}


/* Formulario */

.mc-mobile-form {
    position: relative;
    display: grid;
    padding: 25px 21px 23px;
    gap: 19px;
    border-top: 1px solid #e6ebf0;
}

.mc-mobile-field label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 7px;
    color: #26364b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.mc-mobile-field label > span {
    color: #7a8798;
    font-size: 11px;
    font-weight: 600;
}

.mc-mobile-field label > span[aria-hidden="true"] {
    color: var(--mobile-red);
}

.mc-mobile-field input,
.mc-mobile-field textarea {
    display: block;
    width: 100%;
    margin: 0;
    padding: 13px 14px;
    border: 1px solid var(--mobile-border);
    border-radius: 10px;
    background: #fbfcfd;
    color: var(--mobile-text);
    font-size: 16px;
    line-height: 1.45;
    outline: none;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.mc-mobile-field input {
    min-height: 51px;
}

.mc-mobile-field textarea {
    min-height: 135px;
    resize: vertical;
}

.mc-mobile-field input:focus,
.mc-mobile-field textarea:focus {
    border-color: var(--mobile-blue-light);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(10, 76, 141, 0.11);
}

.mc-mobile-field input.is-invalid,
.mc-mobile-field textarea.is-invalid {
    border-color: #c62828;
    background: #fffafa;
    box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.08);
}

.mc-mobile-field__error {
    display: block;
    min-height: 17px;
    margin-top: 5px;
    color: #b42318;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
}

.mc-mobile-field__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    color: #7a8798;
    font-size: 10px;
    line-height: 1.4;
}

.mc-mobile-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}


/* Estado y botón */

.mc-mobile-form__status {
    padding: 12px 14px;
    border: 1px solid #efb5b0;
    border-radius: 8px;
    background: #fff5f4;
    color: #8a1c13;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.55;
}

.mc-mobile-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    min-height: 54px;
    margin: 2px 0 0;
    padding: 13px 20px;
    border: 2px solid var(--mobile-blue);
    border-radius: 10px;
    background: var(--mobile-blue);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 47, 98, 0.20);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.mc-mobile-submit:active {
    transform: scale(0.985);
}

.mc-mobile-submit:focus-visible {
    outline: 4px solid rgba(10, 76, 141, 0.18);
    outline-offset: 2px;
}

.mc-mobile-submit:disabled {
    opacity: 0.68;
    cursor: wait;
    transform: none;
}

.mc-mobile-submit svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Enlace de regreso */

.mc-mobile-back {
    margin: 19px 0 0;
    text-align: center;
}

.mc-mobile-back a {
    color: var(--mobile-blue-light);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.mc-mobile-back a:focus-visible {
    outline: 3px solid rgba(10, 76, 141, 0.18);
    outline-offset: 3px;
}


/* Pantallas muy pequeñas */

@media (max-width: 370px) {

    .mc-mobile-main {
        width: min(calc(100% - 20px), 470px);
    }

    .mc-mobile-card__heading {
        padding-right: 17px;
        padding-left: 17px;
    }

    .mc-mobile-form {
        padding-right: 16px;
        padding-left: 16px;
    }

    .mc-mobile-field__meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }
}


@media (prefers-reduced-motion: reduce) {

    body.mc-mobile-contact-page *,
    body.mc-mobile-contact-page *::before,
    body.mc-mobile-contact-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}