/* ==========================================================================
   /contact — redesign (option 3a: split form + channels). Scoped to
   .contact-page only; no shared/global CSS touched.
   ========================================================================== */

.contact-page {
    --navy: #0c2a63;
    --navy-hover: #0a2252;
    --gold: #c8871a;
    --gold-on-navy: #e0a02a;
    --bg: #faf9f7;
    --card: #ffffff;
    --card-border: #e6e3e0;
    --text: #12151a;
    --text-secondary: #4b5158;
    --muted: #9aa0a6;
    --input-border: #d8d5d1;
    --error: #b3261e;
    --error-bg: #fdecea;
    --error-border: #f3c9c4;
    --success: #2b5a25;
    --success-bg: #eef4ec;
    --success-border: #cbe0c6;

    font-family: 'Commissioner', system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
}

.contact-page h1, .contact-page h2, .contact-page h3 { margin: 0; text-wrap: pretty; }
.contact-page p { margin: 0; }
.contact-page button { font-family: inherit; }

.contact-container { max-width: 1120px; margin: 0 auto; padding: 0 80px; box-sizing: border-box; }

/* ---- Hero ---- */
.contact-hero { padding: 72px 80px 0; }
.contact-heading { font-size: 52px; line-height: 1.08; letter-spacing: -0.032em; }
.contact-heading-light { font-weight: 300; }
.contact-heading-bold { font-weight: 600; color: var(--gold); margin-left: 0.28ch; }
.contact-subtitle { font-size: 18px; color: var(--text-secondary); line-height: 1.55; margin-top: 16px; }
/* Admin-editable text: let it wrap (a nowrap line pushed the whole page
   sideways once the text got longer than the hero). */
.contact-subtitle { max-width: 62ch; text-wrap: pretty; }
.contact-subtitle-mobile { display: none; }

/* ---- Main grid ---- */
.contact-main {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: start;
    padding: 44px 80px 76px;
}

/* ---- Form card ---- */
.contact-form-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 36px 38px;
}
.contact-form { display: flex; flex-direction: column; gap: 22px; }

.contact-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-field label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.contact-input, .contact-textarea {
    width: 100%;
    border: 1.5px solid var(--input-border);
    border-radius: 11px;
    background: var(--card);
    font-family: inherit;
    font-size: 16px;
    color: var(--text);
    box-sizing: border-box;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-input { height: 52px; padding: 0 16px; }
.contact-textarea { height: 170px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.contact-input::placeholder, .contact-textarea::placeholder { color: var(--muted); }
.contact-input:focus, .contact-textarea:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(12, 42, 99, .12);
}
.contact-input.is-invalid, .contact-textarea.is-invalid { border-color: var(--error); }

.contact-field-error {
    display: none;
    font-size: 13px;
    color: var(--error);
    margin-top: 6px;
}
.contact-field-error.is-visible { display: block; }

.contact-textarea-counter {
    display: none;
    text-align: right;
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 6px;
}
.contact-textarea-counter.is-visible { display: block; }
.contact-textarea-counter.is-over { color: var(--error); }

/* Subject chips — real radios, visually as pills */
.contact-chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-chip {
    position: relative;
    display: inline-flex;
}
.contact-chip input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}
.contact-chip label {
    display: flex;
    align-items: center;
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1.5px solid var(--input-border);
    color: var(--text-secondary);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background-color .15s ease;
    margin: 0;
}
.contact-chip:hover label { border-color: var(--navy); color: var(--navy); }
.contact-chip input[type="radio"]:checked + label {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}
.contact-chip input[type="radio"]:focus-visible + label {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}
.contact-chip-mobile-only { display: none; }

/* Event-reference field — required for "Γενική ερώτηση" / "Διόρθωση
   εκδήλωσης", hidden entirely for the other two subjects; the checkbox lets
   someone opt out of the requirement without picking a different subject. */
.contact-event-field {
    border: 1.5px dashed var(--gold);
    border-radius: 12px;
    padding: 16px 18px;
    background: #fdf8ee;
}
.contact-event-field.is-hidden { display: none; }
.contact-event-field label[for="contact-event-reference"] {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
}
.contact-event-req { color: var(--error); font-weight: 700; }
.contact-event-req.is-optional { color: var(--muted); font-weight: 500; font-size: 12px; }
.contact-event-help { font-size: 12.5px; color: var(--text-secondary); margin-top: 6px; line-height: 1.5; }
.contact-event-field.is-disabled .contact-input { background: #f2f0ec; color: var(--muted); }
.contact-event-check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--input-border);
}
.contact-event-check-row input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--navy); cursor: pointer; margin: 0; flex-shrink: 0; }
.contact-event-check-row label { margin: 0; font-size: 13px; font-weight: 500; color: var(--text-secondary); cursor: pointer; }

.contact-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.contact-privacy-note { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.contact-privacy-note a { color: var(--muted); text-decoration: underline; }
.contact-privacy-note a:hover { color: var(--navy); }

.contact-submit {
    flex-shrink: 0;
    height: 54px;
    padding: 0 34px;
    border: none;
    border-radius: 11px;
    background: var(--navy);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease;
}
.contact-submit:hover:not(:disabled) { background: var(--navy-hover); }
.contact-submit:disabled { background: #4a6494; cursor: default; }

.contact-page *:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Banners */
.contact-banner {
    border-radius: 14px;
    padding: 16px 20px;
    font-size: 14.5px;
    line-height: 1.55;
    margin-bottom: 22px;
}
.contact-banner-error { background: var(--error-bg); border: 1px solid var(--error-border); color: var(--error); }
.contact-banner-success { background: var(--success-bg); border: 1px solid var(--success-border); padding: 26px 28px; }
.contact-success-title { font-size: 19px; font-weight: 600; color: var(--success); margin-bottom: 8px; }
.contact-success-body { font-size: 15.5px; color: var(--success); }
.contact-success-again { display: inline-block; margin-top: 16px; font-weight: 600; color: var(--navy); text-decoration: underline; }

/* Honeypot — off-screen, not display:none (bots skip that), skipped by AT */
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Right column ---- */
.contact-side { display: flex; flex-direction: column; gap: 16px; }

.contact-direct-card {
    background-color: var(--navy);
    background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .045) 0 12px, transparent 12px 24px);
    border-radius: 16px;
    padding: 32px 30px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.contact-direct-item-label { font-size: 13px; color: rgba(255, 255, 255, .55); margin-bottom: 6px; }
.contact-direct-email { font-size: 18px; font-weight: 600; color: var(--gold-on-navy); text-decoration: none; }
.contact-direct-email:hover { text-decoration: underline; }
.contact-direct-response { font-size: 16px; color: #fff; }
.contact-social-icons { display: flex; gap: 10px; }
.contact-social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 17px;
    transition: background-color .15s ease;
}
.contact-social-icons a:hover { background: rgba(255, 255, 255, .12); }

.contact-side-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 26px 28px;
}
.contact-side-card h2 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.contact-side-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.55; }
.contact-side-card a.contact-side-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
}
.contact-side-card a.contact-side-link:hover { text-decoration: underline; }

/* ==========================================================================
   Tablet (481px–1023px)
   ========================================================================== */
@media (max-width: 1023px) {
    .contact-hero { padding: 56px 32px 0; }
    .contact-container, .contact-main { padding-left: 32px; padding-right: 32px; }
    .contact-main { grid-template-columns: 1fr; max-width: 680px; margin: 0 auto; padding-top: 36px; }
    .contact-heading { font-size: 42px; }
}

/* ==========================================================================
   Mobile (<= 480px)
   ========================================================================== */
@media (max-width: 480px) {
    .contact-page { font-size: 15.5px; }

    .contact-hero { padding: 36px 24px 0; }
    .contact-heading { font-size: 34px; }
    .contact-subtitle { display: none; }
    .contact-subtitle-mobile { display: block; font-size: 16px; color: var(--text-secondary); line-height: 1.5; margin-top: 14px; }

    .contact-main { padding: 32px 24px 44px; }
    .contact-form-card { padding: 22px 20px; border-radius: 14px; }
    .contact-field-row { grid-template-columns: 1fr; gap: 18px; }
    .contact-chip { height: 40px; }
    .contact-chip label { height: 40px; padding: 0 15px; font-size: 14px; }
    .contact-chip-mobile-hide { display: none; }
    .contact-event-field { padding: 13px 14px; }
    .contact-textarea { height: 130px; }
    .contact-submit-row { flex-direction: column; align-items: stretch; }
    .contact-submit { width: 100%; }
    .contact-privacy-note { order: 2; text-align: center; }

    .contact-direct-card { padding: 24px 22px; border-radius: 14px; }
    .contact-side-card-secondary { display: none; }
}
