
/* Contenedor principal del formulario */
[id^="gform_wrapper_"] {
    max-width: 622px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    border: none;
}

.gform_heading {
    margin-bottom: 24px;
}

.gform_heading .gform_title {
    color: black;
    font-size: 24px;
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    line-height: 36px;
    letter-spacing: 1.20px;
    margin-bottom: 12px;
    text-transform: none;
}

.gform_description {
    display: block;
    color: rgba(0, 0, 0, 0.80);
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    line-height: 24px;
    margin-bottom: 0;
}

.gform-body {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.50);
    padding: 40px 64px;
}

.gform_footer {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.50);
    border-top: none;
    padding: 0 64px 40px 64px;
    margin: 0;
    display: none !important;
}

/* Resetear estilos de fieldset */
fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.gfield_label,
legend.gfield_label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.gform-field-label--type-sub {
    position: absolute;
    left: 14px;
    top: 8px;
    color: rgba(0, 0, 0, 0.80);
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    line-height: 24px;
    pointer-events: none;
    transition: all 0.2s;
}

/* Espaciado entre campos principales */
/* .gfield {
    margin-bottom: 24px;
} */

.gfield:last-of-type {
    margin-bottom: 0;
}

/* Campos de entrada */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    height: 40px;
    padding: 8px 14px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.50);
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.80);
    box-sizing: border-box;
    margin-bottom: 1rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.80);
}

textarea {
    min-height: 120px;
    height: auto;
    resize: vertical;
    padding-top: 8px;
}

.ginput_container_name .gform-grid-row {
    display: grid;
    grid-template-columns: 237px 237px;
    gap: 20px;
    row-gap: 20px;
}

.ginput_container_name .name_first,
.ginput_container_name .name_last {
    position: relative;
}

.ginput_container_email .gform-grid-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.ginput_container_email span {
    position: relative;
}

[id^="field_"][id$="_8"] .ginput_container_textarea {
    width: 100%;
}

/* Checkbox de consentimiento */
.gfield_consent_label {
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    color: rgba(0, 0, 0, 0.80);
    font-weight: 400;
}

input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Botón de envío */
.gform_footer input[type="submit"],
.gform_footer .gform-button,
[id^="gform_submit_button_"] {
    width: 50%;
    height: 40px;
    background: linear-gradient(0deg, #BE252D 0%, #BE252D 100%), #ED2E38 !important;
    border-radius: 6px;
    border: none;
    color: white !important;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 2rem;
}

.gform_footer input[type="submit"]:hover,
.gform_footer .gform-button:hover,
[id^="gform_submit_button_"]:hover {
    background: linear-gradient(0deg, #a01f26 0%, #a01f26 100%) !important;
    transform: translateY(-2px);
}

/* Ocultar campo honeypot */
.gform_validation_container {
    display: none !important;
}

/* Ajustar campos de Akismet */
.akismet-fields-container {
    display: none !important;
}

.rescop-shortcode-wrapper .gform_title {
    width: 100%;
    text-align: center;
    color: black;
    font-size: 36px !important;
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    line-height: 72px;
    word-wrap: break-word;
    margin-bottom: 12px;
    margin-top: 60px !important;
}

.rescop-shortcode-wrapper .gform_description {
    width: 100%;
    text-align: center;
    color: rgba(0, 0, 0, 0.80);
    font-size: 24px;
    font-family: 'Merriweather Sans', sans-serif;
    font-weight: 400;
    line-height: 36px;
    word-wrap: break-word;
    margin-bottom: 80px;
    display: block;
}

.gform_heading {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    [id^="gform_wrapper_"] {
        max-width: 100%;
    }
    
    .gform-body,
    .gform_footer {
        padding-left: 32px;
        padding-right: 32px;
    }
    
    .ginput_container_name .gform-grid-row {
        grid-template-columns: 1fr;
    }
}
/* === CONTACT FORM 7 - LABELS VISIBLES === */
.wpcf7 p {
    position: relative !important;
    margin-bottom: 1.25rem !important;
}

.wpcf7 p br {
    display: none !important;
}

.wpcf7 p > .wpcf7-form-control-wrap {
    display: block !important;
    margin-top: 0.35rem !important;
}

/* Label visible encima del campo */
.wpcf7 p:not(:has(input[type="submit"])) {
    display: flex !important;
    flex-direction: column !important;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 100% !important;
    padding: 10px 14px !important;
    border: 1px solid rgba(0,0,0,0.50) !important;
    font-size: 15px !important;
    font-family: 'Montserrat', sans-serif !important;
    color: rgba(0,0,0,0.80) !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
    background: white !important;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
    outline: none !important;
    border-color: #BE252D !important;
}

/* Botón de envío */
.wpcf7 input[type="submit"] {
    background: #BE252D !important;
    color: white !important;
    border: none !important;
    padding: 10px 32px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    border-radius: 6px !important;
    transition: background 0.3s !important;
    text-transform: uppercase !important;
}

.wpcf7 input[type="submit"]:hover {
    background: #a01f26 !important;
}

/* Mensajes de error/validación */
.wpcf7-not-valid-tip {
    color: #BE252D !important;
    font-size: 12px !important;
    font-family: 'Montserrat', sans-serif !important;
    margin-top: 4px !important;
    display: block !important;
}

.wpcf7-response-output {
    margin: 1rem 0 !important;
    padding: 10px 14px !important;
    border-radius: 4px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
}
