/**
 * Contact Block — Full page contact layout + CF7 form styles
 *
 * @package AloraAlkemia
 */

/* ══════════════════════════════════════════════════════════════════════════
   BASE
══════════════════════════════════════════════════════════════════════════ */
.cnt-page {
    font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
    color: #fff;
    --cnt-accent:   #FF1400;
    --cnt-dark:     #050B18;
    --cnt-border:   rgba(255,255,255,.08);
    --cnt-dim:      rgba(255,255,255,.55);
    --cnt-mute:     rgba(255,255,255,.3);
}
.cnt-page * { box-sizing: border-box; }

.cnt-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

/* ══════════════════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════════════════ */
.cnt-hero {
    position: relative;
    isolation: isolate;
    padding: calc(88px + 80px) 0 80px; /* 88px fixed header + 80px design padding */
    overflow: hidden;
}
.cnt-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 60% 80% at 80% 50%, rgba(0,28,89,.3) 0%, transparent 60%),
        radial-gradient(ellipse 40% 50% at 10% 100%, rgba(255,20,0,.07) 0%, transparent 55%),
        #050B18;
}

.cnt-eyebrow {
    display: block;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: .22em;
    color: var(--cnt-accent);
    margin-bottom: 28px;
}

.cnt-h1 {
    font-weight: 800;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    line-height: 1.12;
    margin: 0;
    max-width: 800px;
}
.cnt-h1-accent {
    color: var(--cnt-accent);
}

/* ══════════════════════════════════════════════════════════════════════════
   MAIN GRID
══════════════════════════════════════════════════════════════════════════ */
.cnt-main {
    position: relative;
    isolation: isolate;
    padding: 0 0 120px;
    overflow: hidden;
}
.cnt-main-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #050B18;
}

.cnt-main-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 80px;
    align-items: start;
}

/* ══════════════════════════════════════════════════════════════════════════
   INFO COLUMN
══════════════════════════════════════════════════════════════════════════ */
.cnt-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-top: 8px;
}

.cnt-info-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cnt-info-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--cnt-mute);
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--cnt-border);
}

/* Locations list */
.cnt-locations {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cnt-location-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cnt-location-flag {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}
.cnt-location-name {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,.75);
}

/* Email + Phone */
.cnt-contact-link {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,.75);
    text-decoration: none;
    transition: color .2s ease;
}
.cnt-contact-link:hover { color: var(--cnt-accent); }

.cnt-phone-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.cnt-phone-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cnt-mute);
    background: rgba(255,255,255,.05);
    border: 1px solid var(--cnt-border);
    padding: 3px 8px;
    border-radius: 2px;
}

/* ══════════════════════════════════════════════════════════════════════════
   FORM COLUMN
══════════════════════════════════════════════════════════════════════════ */
.cnt-form-col {
    background: rgba(255,255,255,.02);
    border: 1px solid var(--cnt-border);
    border-radius: 4px;
    padding: 48px;
}

.cnt-form-head {
    margin-bottom: 36px;
}
.cnt-form-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}
.cnt-form-sub {
    font-size: 14px;
    color: var(--cnt-dim);
    line-height: 1.7;
    margin: 0;
}
.cnt-no-form {
    font-size: 14px;
    color: var(--cnt-mute);
    font-style: italic;
}

/* ══════════════════════════════════════════════════════════════════════════
   CF7 FORM STYLES
══════════════════════════════════════════════════════════════════════════ */
.cnt-form-col .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Two-column pairs: nombre/apellido and telefono/email */
.cnt-form-col .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* Grid layout — CF7 wraps fields in <p>, use display:contents to pass-through */
.cnt-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.cnt-row > p {
    display: contents; /* make <p> transparent so spans become direct grid children */
}
.cnt-row br {
    display: none; /* hide CF7 line-breaks inside rows */
}
.cnt-row-single {
    margin-bottom: 16px;
}
.cnt-row-single > p {
    margin: 0;
}

/* All text inputs + textarea */
.cnt-form-col .wpcf7-form-control-wrap input[type="text"],
.cnt-form-col .wpcf7-form-control-wrap input[type="email"],
.cnt-form-col .wpcf7-form-control-wrap input[type="tel"],
.cnt-form-col .wpcf7-form-control-wrap textarea {
    width: 100%;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 3px;
    padding: 14px 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    outline: none;
    transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
    -webkit-appearance: none;
}
.cnt-form-col .wpcf7-form-control-wrap input::placeholder,
.cnt-form-col .wpcf7-form-control-wrap textarea::placeholder {
    color: rgba(255,255,255,.3);
}
.cnt-form-col .wpcf7-form-control-wrap input:focus,
.cnt-form-col .wpcf7-form-control-wrap textarea:focus {
    border-color: rgba(255,20,0,.5);
    background: rgba(255,255,255,.06);
    box-shadow: 0 0 0 3px rgba(255,20,0,.08);
}

/* Textarea */
.cnt-form-col .wpcf7-form-control-wrap textarea {
    min-height: 120px;
    resize: vertical;
}

/* Validation errors */
.cnt-form-col .wpcf7-not-valid {
    border-color: rgba(255,20,0,.6) !important;
}
.cnt-form-col .wpcf7-not-valid-tip {
    display: block;
    font-size: 11px;
    color: var(--cnt-accent);
    margin-top: 4px;
    font-weight: 500;
}

/* Submit button */
.cnt-form-col input[type="submit"],
.cnt-form-col .wpcf7-submit {
    margin-top: 8px;
    width: 100%;
    padding: 16px 32px;
    background: var(--cnt-accent);
    color: #fff;
    border: none;
    border-radius: 3px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .25s ease, transform .2s ease, box-shadow .25s ease;
    -webkit-appearance: none;
}
.cnt-form-col input[type="submit"]:hover,
.cnt-form-col .wpcf7-submit:hover {
    background: #cc1000;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(255,20,0,.3);
}
.cnt-form-col input[type="submit"]:active,
.cnt-form-col .wpcf7-submit:active {
    transform: translateY(0);
}

/* Response messages */
.cnt-form-col .wpcf7-response-output {
    margin-top: 16px;
    padding: 12px 18px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid;
}
.cnt-form-col .wpcf7-mail-sent-ok {
    background: rgba(0,200,100,.08);
    border-color: rgba(0,200,100,.3);
    color: #4ade80;
}
.cnt-form-col .wpcf7-validation-errors,
.cnt-form-col .wpcf7-spam-blocked,
.cnt-form-col .wpcf7-mail-sent-ng,
.cnt-form-col .wpcf7-acceptance-missing {
    background: rgba(255,20,0,.06);
    border-color: rgba(255,20,0,.25);
    color: #fca5a5;
}

/* Spinner */
.cnt-form-col .wpcf7-spinner {
    display: none;
}

/* Remove CF7 default paragraph margins */
.cnt-form-col .wpcf7 p {
    margin: 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════════════════════════════════════ */
.cnt-page [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s ease, transform .7s ease;
}
.cnt-page [data-reveal].is-in {
    opacity: 1;
    transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .cnt-shell { padding: 0 24px; }
    .cnt-main-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .cnt-form-col { padding: 32px 24px; }
}

@media (max-width: 600px) {
    .cnt-hero { padding: calc(80px + 56px) 0 56px; } /* 80px mobile header + 56px design */
    .cnt-row { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════════
   REDUCED MOTION
══════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .cnt-page [data-reveal] { opacity: 1; transform: none; transition: none; }
}
