/*
 * Frontend Event Submission — Matches Mid Diamonds dark form style
 */

/* ── Wrapper ─────────────────────────────────────────────────────────────── */
.fes-wrapper {
    font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
}

/* ── Notices ─────────────────────────────────────────────────────────────── */
.fes-notice {
    padding: 14px 20px;
    border-radius: 4px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.6;
    border-left: 4px solid transparent;
}
.fes-notice a  { font-weight: 600; }
.fes-success   { background: #1a2e1a; border-left-color: #c9a84c; color: #c9a84c; }
.fes-error     { background: #2e1a1a; border-left-color: #e74c3c; color: #f1a1a1; }
.fes-info      { background: #1c1c2e; border-left-color: #c9a84c; color: #c9a84c; }
.fes-info a    { color: #c9a84c; }

/* ── Main form card — dark bg + gold top border ──────────────────────────── */
#fes-form {
    background: #1e1e2f;
    border-top: 3px solid #c9a84c;
    border-radius: 6px;
    padding: 40px 36px;
}

/* ── Remove section card styling — flat layout like the reference ────────── */
.fes-section {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0 0 10px 0;
    box-shadow: none;
}

.fes-section-title {
    display: none;
}

/* ── Field rows ──────────────────────────────────────────────────────────── */
.fes-fields-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
    padding: 0;
}

.fes-fields-body .fes-field.full {
    grid-column: 1 / -1;
}

/* ── Individual field ────────────────────────────────────────────────────── */
.fes-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

/* ── Labels — uppercase, spaced, light grey like reference ───────────────── */
.fes-field > label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b0b0c0;
    margin: 0;
    display: block;
}

.req { color: #c9a84c; margin-left: 3px; }

/* ── Inputs — dark navy fill, subtle border, rounded ────────────────────── */
.fes-field input[type="text"],
.fes-field input[type="email"],
.fes-field input[type="url"],
.fes-field input[type="tel"],
.fes-field input[type="date"],
.fes-field input[type="time"],
.fes-field input[type="file"],
.fes-field select,
.fes-field textarea {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    font-size: 14px;
    font-family: inherit;
    color: #e0e0f0;
    background: #252538;
    border: 1px solid #2e2e45;
    border-radius: 6px;
    box-sizing: border-box;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    appearance: none;
    -webkit-appearance: none;
}

.fes-field textarea {
    height: auto;
    padding: 14px 16px;
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

.fes-field input[type="file"] {
    padding: 14px 16px;
    height: auto;
    cursor: pointer;
    color: #888;
}

.fes-field input:focus,
.fes-field textarea:focus,
.fes-field select:focus {
    border-color: #c9a84c;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, .12);
    background: #2a2a40;
}

.fes-field input::placeholder,
.fes-field textarea::placeholder {
    color: #555570;
    font-size: 13px;
}

.fes-field input[type="date"]::-webkit-calendar-picker-indicator,
.fes-field input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(0.6);
    cursor: pointer;
}

.fes-field small {
    font-size: 11px;
    color: #555570;
    margin-top: -4px;
}

/* ── Category checkboxes ─────────────────────────────────────────────────── */
.fes-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 2px 0;
}

.fes-cat-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    background: #252538;
    border: 1px solid #2e2e45;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #9090a8;
    cursor: pointer;
    transition: all .15s;
}

.fes-cat-label:hover {
    border-color: #c9a84c;
    color: #c9a84c;
    background: #2a2a40;
}

.fes-cat-label:has(input:checked) {
    border-color: #c9a84c;
    background: rgba(201, 168, 76, .1);
    color: #c9a84c;
}

.fes-cat-label input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #c9a84c;
    flex-shrink: 0;
    border: none;
    padding: 0;
    margin: 0;
}

/* ── Submit row ──────────────────────────────────────────────────────────── */
.fes-submit-row {
    margin-top: 10px;
}

/* ── Submit button — gold, uppercase, matches site CTAs ─────────────────── */
.fes-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #c9a84c;
    color: #1a1a2e;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 15px 40px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background .2s, transform .1s;
    line-height: 1;
}

.fes-btn:hover   { background: #e0bc5a; }
.fes-btn:active  { transform: scale(.98); }
.fes-btn:disabled {
    background: #6b5a28;
    color: #999;
    cursor: not-allowed;
    transform: none;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    #fes-form {
        padding: 24px 18px;
    }
    .fes-fields-body {
        grid-template-columns: 1fr;
    }
    .fes-fields-body .fes-field.full {
        grid-column: 1;
    }
    .fes-btn {
        width: 100%;
    }
}
