/* =============================================================================
   WIDGET: Formulario de contacto — .rw-contact-widget
   ============================================================================= */

.rw-contact-widget {
    width: 100%;
    background: #ffffff;
    padding: 120px 315px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* ── Cabecera ────────────────────────────────────────────── */

.rw-contact-widget__header {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.rw-contact-widget__title {
    color: #4B3B47;
    font-size: 40px;
    font-family: 'Manrope', var(--rw-font-heading);
    font-weight: 300;
    line-height: 48px;
    margin: 0;
    word-wrap: break-word;
}

.rw-contact-widget__description {
    color: #454545;
    font-size: 20px;
    font-family: 'Nunito', var(--rw-font-primary);
    font-weight: 400;
    line-height: 24px;
    margin: 0;
    word-wrap: break-word;
}

/* ── Formulario ──────────────────────────────────────────── */

.rw-contact-widget__form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.rw-contact-widget__row {
    display: flex;
    gap: 24px;
}

.rw-contact-widget__field {
    flex: 1 1 0;
    min-width: 0;
}

.rw-contact-widget__field--full {
    flex: 1 1 100%;
}

/* Inputs y textarea */

.rw-contact-widget__input,
.rw-contact-widget__select,
.rw-contact-widget__textarea {
    width: 100%;
    padding: 10px 20px;
    background: #ffffff;
    outline: 1px solid #000000;
    outline-offset: -1px;
    border: none;
    font-size: 18px;
    font-family: 'Nunito', var(--rw-font-primary);
    font-weight: 400;
    line-height: 24px;
    color: #454545;
    appearance: none;
    -webkit-appearance: none;
}

.rw-contact-widget__input {
    height: 59px;
}

.rw-contact-widget__input::placeholder,
.rw-contact-widget__textarea::placeholder {
    color: #454545;
}

.rw-contact-widget__input:focus,
.rw-contact-widget__select:focus,
.rw-contact-widget__textarea:focus {
    outline: 2px solid #00938A;
    outline-offset: -2px;
}

/* Select con flecha personalizada */

.rw-contact-widget__select-wrap {
    position: relative;
}

.rw-contact-widget__select {
    height: 59px;
    cursor: pointer;
    padding-right: 48px;
}

.rw-contact-widget__select-wrap::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 7px;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

/* Textarea */

.rw-contact-widget__textarea {
    height: 299px;
    padding-top: 10px;
    padding-bottom: 20px;
    resize: vertical;
    display: block;
}

/* ── Legal ───────────────────────────────────────────────── */

.rw-contact-widget__legal {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-family: 'Nunito', var(--rw-font-primary);
    font-weight: 400;
    line-height: 24px;
    color: #454545;
}

.rw-contact-widget__checkbox {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: 1px solid #454545;
    border-radius: 3px;
    appearance: none;
    -webkit-appearance: none;
    background: #ffffff;
    cursor: pointer;
    position: relative;
}

.rw-contact-widget__checkbox:checked::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: #00938A;
    border-radius: 1px;
}

.rw-contact-widget__legal label {
    cursor: pointer;
}

.rw-contact-widget__legal a {
    color: #00938A;
    text-decoration: none;
}

.rw-contact-widget__legal a:hover {
    text-decoration: underline;
}

/* ── Feedback ────────────────────────────────────────────── */

.rw-contact-widget__feedback {
    font-size: 15px;
    font-family: 'Nunito', var(--rw-font-primary);
    min-height: 0;
    transition: min-height 0.2s;
}

.rw-contact-widget__feedback--success {
    color: #00938A;
}

.rw-contact-widget__feedback--error {
    color: #d63638;
}

/* ── Botón ───────────────────────────────────────────────── */

.rw-contact-widget__submit {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 24px;
    padding: 16px 42px;
    background-color: #00938A;
    border: none;
    border-radius: 0;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    font-size: 18px;
    font-family: 'Nunito', var(--rw-font-primary);
    font-weight: 400;
    line-height: 24px;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: normal;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.rw-contact-widget__submit:hover {
    background-color: #007a72;
}

.rw-contact-widget__submit:focus-visible {
    outline: 2px solid #00938A;
    outline-offset: 3px;
}

.rw-contact-widget__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.rw-contact-widget__submit-icon {
    flex-shrink: 0;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 1200px) {
    .rw-contact-widget {
        padding: 80px 80px;
    }
}

@media (max-width: 900px) {
    .rw-contact-widget {
        padding: 60px 40px;
    }

    .rw-contact-widget__row {
        flex-direction: column;
    }

    .rw-contact-widget__title {
        font-size: 30px;
        line-height: 38px;
    }
}

@media (max-width: 600px) {
    .rw-contact-widget {
        padding: 48px 24px;
        gap: 32px;
    }

    .rw-contact-widget__description {
        font-size: 17px;
    }

    .rw-contact-widget__submit {
        width: 100%;
        justify-content: center;
    }
}
