/* =========================================================
   COTIZADOR - CONTACTO
   SinSanjas / La Bamba
   CSS independiente del cotizador anterior
   ========================================================= */


/* ---------------------------------------------------------
   CONTENEDOR GENERAL
   --------------------------------------------------------- */

.quotation-page {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #f5f6f7;
    color: #222;
}


/* ---------------------------------------------------------
   ENCABEZADO DEL COTIZADOR
   --------------------------------------------------------- */

.quotation-header {
    width: 100%;
    padding: 80px 30px 70px;
    background: #222;
    box-sizing: border-box;
}

.quotation-header-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.quotation-eyebrow {
    display: block;
    margin-bottom: 15px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #bdbdbd;
}

.quotation-header h1 {
    margin: 0;
    font-size: 46px;
    line-height: 1.1;
    font-weight: 700;
    color: #fff;
}

.quotation-header p {
    max-width: 650px;
    margin: 20px auto 0;
    font-size: 17px;
    line-height: 1.6;
    color: #d7d7d7;
}


/* ---------------------------------------------------------
   SECCIÓN
   --------------------------------------------------------- */

.quotation-section {
    width: 100%;
    padding: 60px 20px 90px;
    box-sizing: border-box;
}

.quotation-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


/* ---------------------------------------------------------
   FORMULARIO
   --------------------------------------------------------- */

.quotation-form {
    width: 100%;
    margin: 0;
}


/* ---------------------------------------------------------
   TARJETAS
   --------------------------------------------------------- */

.quotation-card {
    width: 100%;
    margin-bottom: 25px;
    background: #fff;
    border: 1px solid #e3e5e7;
    border-radius: 4px;
    box-sizing: border-box;
    overflow: hidden;
}

.quotation-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 22px 28px;
    background: #fafafa;
    border-bottom: 1px solid #e3e5e7;
    box-sizing: border-box;
}

.quotation-card-header > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    background: #222;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.quotation-card-header h2 {
    margin: 0;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 600;
    color: #222;
}

.quotation-card-body {
    width: 100%;
    padding: 30px;
    box-sizing: border-box;
}


/* ---------------------------------------------------------
   EMPRESA / PERSONA FÍSICA
   --------------------------------------------------------- */

.quotation-user-type {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.quotation-radio {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
    padding: 14px 18px;
    border: 1px solid #d9dcdf;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color .2s ease, background .2s ease;
}

.quotation-radio:hover {
    border-color: #222;
}

.quotation-radio input {
    width: 17px;
    height: 17px;
    margin: 0;
    cursor: pointer;
}

.quotation-radio span {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

#client-type {
    width: 100%;
}

#client-type h4 {
    margin: 0 0 20px;
    font-size: 17px;
    font-weight: 600;
    color: #333;
}


/* ---------------------------------------------------------
   GRIDS
   --------------------------------------------------------- */

.quotation-grid {
    display: grid;
    width: 100%;
    gap: 22px 20px;
    margin-bottom: 22px;
}

.quotation-grid:last-child {
    margin-bottom: 0;
}

.quotation-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quotation-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}


/* ---------------------------------------------------------
   CAMPOS
   --------------------------------------------------------- */

.quotation-field {
    width: 100%;
    min-width: 0;
}

.quotation-field label {
    display: block;
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    color: #333;
}

.quotation-field input,
.quotation-field select,
.quotation-field textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    margin: 0;
    border: 1px solid #d3d7da;
    border-radius: 4px;
    background: #fff;
    color: #222;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
    box-sizing: border-box;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.quotation-field textarea {
    min-height: 130px;
    resize: vertical;
}

.quotation-field input::placeholder,
.quotation-field textarea::placeholder {
    color: #999;
}

.quotation-field input:focus,
.quotation-field select:focus,
.quotation-field textarea:focus {
    border-color: #555;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, .06);
}

.quotation-field select {
    cursor: pointer;
}


/* ---------------------------------------------------------
   INPUTS CON UNIDAD
   --------------------------------------------------------- */

.quotation-input-unit {
    display: flex;
    width: 100%;
}

.quotation-input-unit input {
    min-width: 0;
    border-radius: 4px 0 0 4px;
}

.quotation-input-unit span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 0 12px;
    border: 1px solid #d3d7da;
    border-left: 0;
    border-radius: 0 4px 4px 0;
    background: #f1f2f3;
    color: #555;
    font-size: 14px;
    box-sizing: border-box;
}


/* ---------------------------------------------------------
   CAMPOS DINÁMICOS
   --------------------------------------------------------- */

#duct-extra-fields,
#purpose-extra-fields,
#cross-extra-fields,
#coal-extra-fields {
    width: 100%;
}

#duct-extra-fields:empty,
#purpose-extra-fields:empty,
#cross-extra-fields:empty,
#coal-extra-fields:empty {
    display: none;
}


/* ---------------------------------------------------------
   ARCHIVOS
   --------------------------------------------------------- */

.quotation-file {
    display: flex;
    flex-direction: column;
}

.quotation-file > p {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.5;
    color: #777;
}

.quotation-file-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-height: 46px;
    padding: 10px 20px !important;
    margin: 0 !important;
    border: 1px solid #222;
    border-radius: 4px;
    background: #222;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
    box-sizing: border-box;
}

.quotation-file-button:hover {
    background: #444;
    border-color: #444;
}

.quotation-file input[type="file"] {
    display: none;
}

#file-selected {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
    word-break: break-word;
}


/* ---------------------------------------------------------
   ERRORES
   --------------------------------------------------------- */

.quotation-field input.is-invalid,
.quotation-field select.is-invalid,
.quotation-field textarea.is-invalid {
    border-color: #c62828;
    box-shadow: 0 0 0 2px rgba(198, 40, 40, .08);
}


/* ---------------------------------------------------------
   BOTÓN DE ENVÍO
   --------------------------------------------------------- */

.quotation-submit {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 35px;
}

.quotation-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 260px;
    min-height: 54px;
    padding: 14px 30px;
    border: 0;
    border-radius: 4px;
    background: #222;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.quotation-button:hover {
    background: #444;
    transform: translateY(-1px);
}

.quotation-button:active {
    transform: translateY(0);
}


/* ---------------------------------------------------------
   PANTALLA DE ENVÍO
   --------------------------------------------------------- */

#sending-screen.quotation-loading {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .65);
    box-sizing: border-box;
}

.quotation-loading-box {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 260px;
    padding: 35px 25px;
    transform: translate(-50%, -50%);
    border-radius: 6px;
    background: #fff;
    text-align: center;
    box-sizing: border-box;
}

.quotation-loading-box p {
    margin: 18px 0 0;
    font-size: 15px;
    color: #333;
}

.quotation-spinner {
    width: 42px;
    height: 42px;
    margin: 0 auto;
    border: 4px solid #ddd;
    border-top-color: #222;
    border-radius: 50%;
    animation: quotation-spin .8s linear infinite;
}

@keyframes quotation-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .quotation-header {
        padding: 65px 25px 55px;
    }

    .quotation-header h1 {
        font-size: 38px;
    }

    .quotation-section {
        padding: 45px 15px 70px;
    }

    .quotation-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* ---------------------------------------------------------
   MÓVIL
   --------------------------------------------------------- */

@media (max-width: 650px) {

    .quotation-header {
        padding: 50px 20px 45px;
    }

    .quotation-eyebrow {
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .quotation-header h1 {
        font-size: 30px;
    }

    .quotation-header p {
        font-size: 15px;
    }

    .quotation-section {
        padding: 30px 10px 50px;
    }

    .quotation-card {
        margin-bottom: 18px;
    }

    .quotation-card-header {
        padding: 18px;
        gap: 12px;
    }

    .quotation-card-header > span {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
        font-size: 11px;
    }

    .quotation-card-header h2 {
        font-size: 18px;
    }

    .quotation-card-body {
        padding: 20px 18px;
    }

    .quotation-user-type {
        flex-direction: column;
        gap: 10px;
    }

    .quotation-radio {
        width: 100%;
    }

    .quotation-grid-2,
    .quotation-grid-3 {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .quotation-button {
        width: 100%;
        min-width: 0;
    }

}