/* =========================================================
   CONTACT
   ========================================================= */

.ct-page {
    --ct-green: var(--brand-sec-color, #013F1F);
    --ct-accent: var(--brand-color, #02A550);
    --ct-paper: #FFFFFF;
    --ct-ground: #F7F6F1;
    --ct-line: #E5E3DA;
    --ct-text: #1C2B23;
    --ct-muted: #6B7A72;
    --ct-danger: #A32B1C;

    font-family: var(--primary-font, 'Poppins', sans-serif);
    color: var(--ct-text);
    background: var(--ct-ground);
}

/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

.ct-hero {
    padding: clamp(34px, 5.5vw, 62px) 0 clamp(24px, 3.5vw, 40px);
    text-align: center;
    background: linear-gradient(180deg, #F6F1E2 0%, var(--ct-ground) 100%);
    border-bottom: 1px solid var(--ct-line);
}

.ct-hero-title {
    margin: 0;
    font-size: clamp(30px, 5.2vw, 46px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ct-green);
}

.ct-hero-text {
    max-width: 50ch;
    margin: 12px auto 0;
    font-size: clamp(14px, 1.6vw, 16px);
    line-height: 1.65;
    color: var(--ct-muted);
}

.ct-body {
    padding: clamp(26px, 4vw, 52px) 0 clamp(30px, 4vw, 56px);
}

/* ---------------------------------------------------------
   LAYOUT
   --------------------------------------------------------- */

.ct-layout {
    display: grid;
    grid-template-columns: minmax(260px, 340px) 1fr;
    gap: clamp(20px, 3vw, 36px);
    align-items: start;
}

/* ---------------------------------------------------------
   DETAIL CARDS
   --------------------------------------------------------- */

.ct-details {
    display: grid;
    gap: 14px;
}

.ct-card {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    background: var(--ct-paper);
    border: 1px solid var(--ct-line);
    border-radius: 12px;
}

.ct-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    font-size: 16px;
    color: var(--ct-accent);
    background: rgba(2, 165, 80, 0.1);
    border-radius: 50%;
}

.ct-card-title {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ct-green);
}

.ct-card-text {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--ct-muted);
}

.ct-card-text a {
    color: var(--ct-muted);
    text-decoration: none;
}

.ct-card-text a:hover {
    color: var(--ct-accent);
    text-decoration: underline;
}

.ct-inline-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ct-accent);
    text-decoration: none;
}

.ct-inline-link:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------
   FORM
   --------------------------------------------------------- */

.ct-form-panel {
    padding: clamp(22px, 3vw, 32px);
    background: var(--ct-paper);
    border: 1px solid var(--ct-line);
    border-radius: 12px;
}

.ct-form-title {
    margin: 0 0 4px;
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--ct-green);
}

.ct-form-intro {
    margin: 0 0 20px;
    font-size: 13px;
    color: var(--ct-muted);
}

.ct-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

.ct-field {
    margin-bottom: 16px;
}

.ct-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ct-text);
}

.ct-req {
    color: var(--ct-danger);
}

.ct-field input,
.ct-field textarea {
    width: 100%;
    padding: 11px 13px;
    font-family: inherit;
    font-size: 14.5px;
    color: var(--ct-text);
    background: var(--ct-paper);
    border: 1px solid var(--ct-line);
    border-radius: 7px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ct-field textarea {
    min-height: 130px;
    resize: vertical;
}

.ct-field input:hover,
.ct-field textarea:hover {
    border-color: #C9CFC9;
}

.ct-field input:focus,
.ct-field textarea:focus {
    border-color: var(--ct-accent);
    box-shadow: 0 0 0 3px rgba(2, 165, 80, 0.14);
}

.ct-field input[aria-invalid="true"],
.ct-field textarea[aria-invalid="true"] {
    border-color: var(--ct-danger);
}

.ct-error {
    margin: 6px 0 0;
    font-size: 12.5px;
    color: var(--ct-danger);
}

/* The honeypot must be reachable by bots but invisible to people, so it
   is moved off-screen rather than display:none. */
.ct-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ct-submit {
    padding: 12px 30px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    color: #FFFFFF;
    background: var(--ct-accent);
    border: 1px solid var(--ct-accent);
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.ct-submit:hover {
    background: #018f45;
    border-color: #018f45;
}

.ct-submit:focus-visible,
.ct-field input:focus-visible,
.ct-field textarea:focus-visible {
    outline: 2px solid var(--ct-green);
    outline-offset: 2px;
}

/* ---------------------------------------------------------
   ALERTS
   --------------------------------------------------------- */

.ct-alert {
    margin-bottom: 18px;
    padding: 12px 15px;
    font-size: 13.5px;
    line-height: 1.6;
    border: 1px solid transparent;
    border-radius: 8px;
}

.ct-alert--success {
    color: #0B5C33;
    background: rgba(2, 165, 80, 0.09);
    border-color: rgba(2, 165, 80, 0.3);
}

.ct-alert--error {
    color: var(--ct-danger);
    background: rgba(163, 43, 28, 0.08);
    border-color: rgba(163, 43, 28, 0.25);
}

/* ---------------------------------------------------------
   MAP
   --------------------------------------------------------- */

.ct-map-section {
    padding: 0 0 clamp(40px, 6vw, 72px);
}

.ct-map-title {
    margin: 0 0 6px;
    font-size: clamp(19px, 2.4vw, 26px);
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--ct-green);
}

.ct-map-text {
    max-width: 60ch;
    margin: 0 0 18px;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--ct-muted);
}

.ct-map {
    height: clamp(280px, 42vh, 460px);
    overflow: hidden;
    border-top: 1px solid var(--ct-line);
    border-bottom: 1px solid var(--ct-line);
    background: #E8E6DD;
}

.ct-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .ct-layout {
        grid-template-columns: 1fr;
    }

    .ct-details {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 560px) {

    .ct-row {
        grid-template-columns: 1fr;
    }

    .ct-submit {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {

    .ct-field input,
    .ct-field textarea,
    .ct-submit {
        transition: none;
    }
}
