/* =========================================================
   EcoFeed Solutions – Contact page
   Same palette / type / layout language as the other pages
   ========================================================= */

.contact-page {
    --green: #4CAF50;
    --green-deep: #2e7d32;
    --gold: #FFD700;
    --cream: #FBF4E4;
    --ink: #111;
    --muted: #4d4d4d;
    --line: #ddd5bf;
    --ease: cubic-bezier(.22, .8, .24, 1);
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: #fff;
}

.contact-page *, .contact-page *::before, .contact-page *::after { box-sizing: border-box; }
.contact-page h1, .contact-page h2, .contact-page p, .contact-page ul { margin: 0; padding: 0; }
.contact-page ul { list-style: none; }
.contact-page a { color: inherit; text-decoration: none; }
.contact-page .wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.contact-page :focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* ---------- Banner ---------- */
.contact-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(340px, 52vh, 460px);
    padding: 140px 0 64px;
    color: #fff;
    background: #1d3a21 url('../img/soils.jpg') center / cover no-repeat;
    border-radius: 0 0 44px 44px;
    overflow: hidden;
}

.contact-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, 0) 38%),
        linear-gradient(90deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .3) 60%, rgba(0, 0, 0, .15) 100%);
}

.contact-hero .wrap { position: relative; z-index: 1; width: 100%; }

.contact-hero h1 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: clamp(42px, 6.6vw, 86px);
    line-height: .98;
    letter-spacing: -.035em;
}

/* ---------- Alerts ---------- */
.contact-page .alert {
    margin: 40px 0 0;
    padding: 16px 22px;
    border-radius: 10px;
    font-weight: 600;
}

.contact-page .alert-success { background: #e8f5e9; color: #1b5e20; }
.contact-page .alert-error { background: #fdecea; color: #b71c1c; }

/* ---------- Layout ---------- */
.contact-section { padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); }

.contact-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 72px;
    align-items: start;
}

.contact-page h2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.02;
    letter-spacing: -.03em;
    margin-bottom: 32px;
}

/* ---------- Contact details ---------- */
.contact-info { border-top: 2px solid var(--ink); }

.contact-info li {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 0 18px;
    align-items: start;
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
}

.contact-info i { grid-row: 1 / span 2; font-size: 24px; color: var(--green); padding-top: 4px; }
.contact-info small { color: var(--muted); font-size: 14px; line-height: 1.3; }

.contact-info .val {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 1.8vw, 22px);
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.contact-info a.val { display: block; transition: color .25s ease; }
.contact-info a.val:hover { color: var(--green-deep); }

/* ---------- Form ---------- */
.contact-form {
    padding: 44px;
    border-radius: 14px;
    background: var(--cream);
}

.contact-form h2 { margin-bottom: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }

.field label { font-weight: 600; font-size: 15px; }

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0 18px;
    border: 2px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: 500 16px 'DM Sans', sans-serif;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.contact-form input { height: 54px; }
.contact-form textarea { padding: 14px 18px; min-height: 160px; resize: vertical; line-height: 1.55; }

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(76, 175, 80, .25);
}

/* hidden spam trap */
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-form button {
    height: 56px;
    padding: 0 36px;
    border: 0;
    border-radius: 10px;
    background: var(--green);
    color: #fff;
    font: 600 17px 'DM Sans', sans-serif;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, transform .25s var(--ease);
}

.contact-form button:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); }
.contact-form button:disabled { opacity: .65; cursor: wait; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .contact-grid { grid-template-columns: 1fr; gap: 56px; }
}

@media (max-width: 640px) {
    .contact-page .wrap { padding: 0 18px; }
    .contact-hero { min-height: 300px; padding: 110px 0 40px; border-radius: 0 0 28px 28px; }
    .contact-form { padding: 28px 20px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-form button { width: 100%; }
    .contact-info li { grid-template-columns: 38px 1fr; gap: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .contact-page * { transition-duration: .01ms !important; }
}