/* =============================================================
   Contact Section — WhatsApp Quote Form
   Tema Piedrangular
   ============================================================= */

/* =============================================================
   Section wrapper
   ============================================================= */
.contact-section {
    background-color: var(--color-section-blue, #1e40c8);
    padding: 5rem 0;
}

.contact-section__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* =============================================================
   Left column — title, description, features
   ============================================================= */
.contact-section__title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
    text-transform: uppercase;
    margin: 0 0 1.25rem;
}

.contact-section__description {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 2rem;
}

/* Feature list */
.contact-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.375rem;
}

.contact-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-feature__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.125rem;
}

.contact-feature__text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.contact-feature__title {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.contact-feature__desc {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

/* =============================================================
   Right column — white form card
   ============================================================= */
.contact-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 2rem 2.25rem;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.2);
}

.contact-card__heading {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 0.25rem;
}

.contact-card__subheading {
    font-size: 0.8125rem;
    color: #888;
    margin: 0 0 1.5rem;
}

/* =============================================================
   Form fields
   ============================================================= */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Two-column row (celular + tipo_bien) */
.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ---- form-field component styles ---- */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-field__label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #444;
}

.form-field__required {
    color: #df0e0e;
    margin-left: 2px;
}

.form-field__input {
    font-family: inherit;
    font-size: 0.9375rem;
    color: #222;
    background: #f7f9fc;
    border: 1px solid #dde5f0;
    border-radius: 4px;
    padding: 0.65rem 0.875rem;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.form-field__input:focus {
    border-color: var(--color-primary, #1a4ddb);
    box-shadow: 0 0 0 3px rgba(26, 77, 219, 0.12);
    background: #ffffff;
}

.form-field__input::placeholder {
    color: #aab;
}

/* Select wrapper (for custom chevron) */
.form-field__select-wrap {
    position: relative;
}

.form-field__select-wrap .form-field__select {
    padding-right: 2.25rem;
    cursor: pointer;
}

.form-field__chevron {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #888;
}

/* Textarea */
.form-field__textarea {
    resize: vertical;
    min-height: 100px;
}

/* =============================================================
   Submit button
   ============================================================= */
.contact-form__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.9rem 1.5rem;
    background-color: #25a244;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 0.25rem;
}

.contact-form__submit:hover {
    background-color: #1e8c3a;
}

.contact-form__note {
    font-size: 0.75rem;
    color: #999;
    text-align: center;
    margin: 0;
}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 960px) {
    .contact-section__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-section {
        padding: 3.5rem 0;
    }
}

@media (max-width: 520px) {
    .contact-form__row {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 1.5rem 1.25rem;
    }
}
