/* ==========================================================================
   Cotiza Page Styles
   ========================================================================== */

#cotiza-page {
    padding-top: 0;
    /* Header pushes content down naturally now */
    min-height: 100vh;
    background: rgb(36, 25, 69);
    background: -webkit-linear-gradient(top, rgb(36, 25, 69) 0%, rgb(0, 0, 0) 100%);
    background: -o-linear-gradient(top, rgb(36, 25, 69) 0%, rgb(0, 0, 0) 100%);
    background: linear-gradient(180deg, rgb(36, 25, 69) 0%, rgb(0, 0, 0) 100%);
    position: relative;
    overflow: hidden;
}

#cotiza-page .icon-bg {
    position: absolute;
    width: 80%;
    max-width: 1000px;
    top: 50px;
    right: -25%;
    z-index: 1;
    /* Above page bg but below content (inwrap has higher z-index) */
    opacity: 0.1;
    /* Slightly higher for testing */
    transform: rotate(-25deg) translateX(10%);
    pointer-events: none;
    will-change: transform, opacity;
}

#cotiza-page .inwrap {
    position: relative;
    z-index: 10;
    /* Ensure form is above the icon */
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 1em 0 0em;
}

/* Header Overrides for Cotiza Page */
#main-header {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    position: relative;
    /* Changed from absolute to prevent overlapping */
    border-bottom: none;
    z-index: 100;
}

#main-header .inwrap {
    justify-content: space-between;
}

#main-header .logo-link .logo {
    width: 100%;
    max-width: 20em;
    transition: transform 0.3s ease;
}

#main-header .logo-link:hover .logo {
    transform: scale(1.05);
}

#main-header .inwrap nav ul li {
    opacity: 1 !important;
    transform: none !important;
}

#main-header .inwrap nav ul li a {
    font-family: "Swis721 Lt BT", sans-serif;
    font-size: 0.8em;
    letter-spacing: 1px;
    white-space: nowrap;
}

#cotiza-page .inwrap {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 1em 0 0em;
}

#cotiza-page h2 {
    font-family: 'swis721__bt_expanded_2';
    font-size: 2.5em;
    color: #fff;
    margin-bottom: 0.5em;
    text-align: center;
    letter-spacing: 2px;
}

#cotiza-page .subtitle {
    text-align: center;
    color: var(--text-paragraph-color);
    font-size: 1.1em;
    margin-bottom: 3em;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#cotiza-page form {
    background: rgba(255, 255, 255, 0.03);
    padding: 3em;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

#cotiza-page .input-field {
    margin-bottom: 2em;
    display: flex;
    flex-direction: column;
    gap: 0.8em;
    width: 100%;
}

/* Form Grid System */
.form-row {
    display: flex;
    gap: 20px;
}

.form-row.grid-2>.input-field {
    width: calc(50% - 10px);
}

.form-row.grid-3>.input-field {
    width: calc(33.333% - 13.33px);
}

#cotiza-page label {
    font-family: 'swis721__bt_expanded_2';
    font-size: 0.8em;
    color: var(--green-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

#cotiza-page input[type="text"],
#cotiza-page input[type="email"],
#cotiza-page select,
#cotiza-page textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.2em;
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 1em;
    transition: all 0.3s ease;
}

#cotiza-page input:focus,
#cotiza-page select:focus,
#cotiza-page textarea:focus {
    outline: none;
    border-color: var(--green-light);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(128, 239, 243, 0.2);
}

#cotiza-page select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2380EFF3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2em center;
    background-size: 1.2em;
    padding-right: 3.5em !important;
}

#cotiza-page select option {
    background: #1a1a1a;
    color: #fff;
}

#cotiza-page hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 3em 0;
}

#cotiza-page h3 {
    font-family: 'swis721__bt_expanded_2';
    font-size: 1.4em;
    color: #fff;
    margin-bottom: 1.5em;
    letter-spacing: 1px;
}

/* Radio & Checkboxes */
#cotiza-page .servicios {
    margin-bottom: 2em;
}

#cotiza-page .servicios .text {
    color: #fff;
    margin-bottom: 1.5em;
    font-size: 1.1em;
}

#cotiza-page .checkboxes {
    display: flex;
    flex-direction: column;
    gap: 1.2em;
}

#cotiza-page .checkboxes label {
    display: flex;
    align-items: flex-start;
    gap: 1em;
    color: var(--text-paragraph-color);
    font-family: inherit;
    text-transform: none;
    font-size: 1em;
    cursor: pointer;
    line-height: 1.4;
}

#cotiza-page .checkboxes input {
    margin-top: 0.3em;
    width: 1.2em;
    height: 1.2em;
    accent-color: var(--green-light);
}

#cotiza-page textarea {
    min-height: 120px;
    resize: vertical;
}

#cotiza-page .comentarios2 {
    display: none;
    /* Honeypot */
}

#cotiza-page .add-msg {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    margin-bottom: 2em;
}

#cotiza-page .success-msg {
    display: none;
    background: rgba(128, 239, 243, 0.1);
    border: 1px solid var(--green-light);
    color: var(--green-light);
    padding: 1.5em;
    border-radius: 10px;
    text-align: center;
    margin: 2em 0;
}

#cotiza-page .success-msg a {
    color: #fff;
    text-decoration: underline;
}

#cotiza-page .error-msg {
    display: none;
    background: rgba(255, 90, 90, 0.1);
    border: 1px solid #ff6b6b;
    color: #ff9d9d;
    padding: 1.2em 1.5em;
    border-radius: 10px;
    text-align: center;
    margin: 1.5em 0 0;
}

/* Marca de campo obligatorio inválido */
#cotiza-page .input-field.field-invalid input[type="text"],
#cotiza-page .input-field.field-invalid input[type="email"],
#cotiza-page .input-field.field-invalid select,
#cotiza-page .input-field.field-invalid textarea {
    border-color: #ff6b6b;
    background: rgba(255, 90, 90, 0.06);
}

#cotiza-page .input-field.field-invalid label {
    color: #ff9d9d;
}

#cotiza-page .servicios.field-invalid {
    outline: 1px solid #ff6b6b;
    outline-offset: 10px;
    border-radius: 6px;
}

#cotiza-page .field-error {
    display: block;
    color: #ff9d9d;
    font-size: 0.8em;
    letter-spacing: 0.3px;
}

#cotiza-page .servicios.field-invalid .field-error {
    margin-top: 1em;
}

#cotiza-page .buttons {
    display: flex;
    justify-content: center;
}

#cotiza-page .send-inscr {
    color: #80EFF3;
    background-color: transparent;
    padding: 1.2em 4em;
    border: 0.2em solid #80EFF3;
    border-radius: 3em;
    font-size: 1.1em;
    cursor: pointer;
    font-family: 'swis721__bt_expanded_2';
    transition: all 0.3s ease-in-out;
}

#cotiza-page .send-inscr:hover {
    box-shadow: 0 0 5px var(--green-light), 0 0 30px var(--green-light), 0 0 7px var(--green-light);
    background-color: var(--green-light);
    color: #000;
}

#main-footer {
    background-color: #000;
}

/* Responsive */
@media (max-width: 768px) {
    #main-header .inwrap {
        flex-direction: row;
        gap: 2em;
        padding: 2em 0;
    }

    #main-header .logo-link .logo {
        height: 3em;
    }

    #main-header .inwrap nav ul {
        gap: 1.5em;
        flex-wrap: wrap;
        justify-content: center;
    }

    #main-header .inwrap nav ul li a {
        font-size: 0.7em;
    }

    #cotiza-page {
        padding-top: 0;
    }

    #cotiza-page h2 {
        font-size: 2.5em;
    }

    #cotiza-page form {
        padding: 1.5em;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row.grid-2>.input-field,
    .form-row.grid-3>.input-field {
        width: 100%;
    }

    #cotiza-page .send-inscr {
        width: 100%;
    }
}