/* Illumenza contact forms — shared styling
   Reuses brand tokens: brand-blue #0066CC, brand-light #E6F2FF */

:root {
    --brand-blue: #0066CC;
    --brand-blue-dark: #0052a3;
    --brand-light: #E6F2FF;
    --ring: rgba(0, 102, 204, 0.18);
    --err: #dc2626;
}

/* Layout shell ----------------------------------------------------------- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

body.form-page {
    background: linear-gradient(180deg, #f3f8ff 0%, #ffffff 55%);
}

.form-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.form-main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2.5rem 1rem 3rem;
}

.form-card {
    width: 100%;
    max-width: 640px;
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 2rem 1.75rem 2.25rem;
    animation: cardIn 0.5s ease both;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (min-width: 640px) {
    .form-card { padding: 2.75rem 2.5rem 3rem; }
}

/* Header ----------------------------------------------------------------- */
.form-icon { font-size: 2.5rem; line-height: 1; margin-bottom: 0.5rem; }

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
    margin-bottom: 0.85rem;
}
@media (min-width: 640px) { .form-title { font-size: 1.75rem; } }

.form-intro {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.7;
    white-space: pre-line;
    margin-bottom: 2rem;
}
.form-intro a { color: var(--brand-blue); text-decoration: underline; }

/* Fields ----------------------------------------------------------------- */
.field { margin-bottom: 1.6rem; }

.field-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.3rem;
}
.field-label .req { color: var(--err); margin-left: 0.15rem; }

.field-desc {
    font-size: 0.825rem;
    color: #6b7280;
    line-height: 1.6;
    white-space: pre-line;
    margin-bottom: 0.6rem;
}

.field-input,
.field-textarea {
    width: 100%;
    border: 1.5px solid #d1d5db;
    border-radius: 0.6rem;
    padding: 0.7rem 0.85rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: #111827;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.field-textarea { min-height: 140px; resize: vertical; line-height: 1.6; }

.field-input::placeholder,
.field-textarea::placeholder { color: #9ca3af; }

.field-input:focus,
.field-textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px var(--ring);
}

/* Option cards (radio / checkbox) --------------------------------------- */
.opt-list { display: flex; flex-direction: column; gap: 0.5rem; }

.opt-card {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.6rem;
    padding: 0.7rem 0.9rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    user-select: none;
}
.opt-card:hover { border-color: #b6cdec; background: #f7faff; }
.opt-card input { accent-color: var(--brand-blue); width: 1.05rem; height: 1.05rem; flex-shrink: 0; }
.opt-card.selected { border-color: var(--brand-blue); background: var(--brand-light); }
.opt-card span { font-size: 0.92rem; color: #1f2937; line-height: 1.4; }

/* File upload ------------------------------------------------------------ */
.file-drop {
    border: 1.5px dashed #cbd5e1;
    border-radius: 0.7rem;
    padding: 1.4rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    color: #6b7280;
}
.file-drop:hover { border-color: var(--brand-blue); background: #f7faff; }
.file-drop strong { color: var(--brand-blue); }
.file-list { margin-top: 0.6rem; display: flex; flex-direction: column; gap: 0.35rem; }
.file-chip {
    display: flex; justify-content: space-between; align-items: center;
    background: #f3f4f6; border-radius: 0.45rem; padding: 0.4rem 0.65rem;
    font-size: 0.82rem; color: #374151;
}
.file-chip button { color: var(--err); background: none; border: none; cursor: pointer; font-size: 1rem; line-height: 1; }

/* Validation ------------------------------------------------------------- */
.field.has-error .field-input,
.field.has-error .field-textarea { border-color: var(--err); }
.field.has-error .opt-list { outline: 1.5px solid var(--err); outline-offset: 4px; border-radius: 0.7rem; }
.field-error { display: none; color: var(--err); font-size: 0.8rem; margin-top: 0.4rem; }
.field.has-error .field-error { display: block; }

/* honeypot — visually hidden, off-screen */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px; overflow: hidden;
    opacity: 0; pointer-events: none;
}

/* Submit ----------------------------------------------------------------- */
.form-submit {
    width: 100%;
    background: var(--brand-blue);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 0.7rem;
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    margin-top: 0.5rem;
}
.form-submit:hover:not(:disabled) { background: var(--brand-blue-dark); }
.form-submit:active:not(:disabled) { transform: scale(0.99); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-note {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
    margin-top: 0.9rem;
}

.form-banner {
    display: none;
    border-radius: 0.6rem;
    padding: 0.75rem 0.9rem;
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
}
.form-banner.error { display: block; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* Success ---------------------------------------------------------------- */
.form-success { text-align: center; padding: 2rem 0.5rem; animation: cardIn 0.4s ease both; }
.form-success .check {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--brand-light); color: var(--brand-blue);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.1rem; font-size: 1.8rem;
}
.form-success h2 { font-size: 1.35rem; font-weight: 700; color: #111827; margin-bottom: 0.5rem; }
.form-success p { color: #4b5563; font-size: 0.95rem; line-height: 1.7; }
