/*
 * public/submit/submit.css
 * Styles for the Submit an Event page only.
 */

/* This page uses a narrower column than the rest of the site */
.container {
    max-width: 800px;
}

/* ---- Header ---- */
.etw-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px var(--pad-x);
    border-bottom: 1px solid var(--c-ink);
}

.etw-form-logo {
    flex-shrink: 0;
    font-size: 19px;
}

.etw-form-title {
    margin: 0;
    font-weight: 700;
    font-size: 14px;
    text-align: right;
    color: var(--c-ink);
}

@media (min-width: 768px) {
    .etw-form-header {
        justify-content: space-between;
        padding: 16px var(--pad-x);
    }

    .etw-form-logo {
        font-size: 24px;
    }

    .etw-form-title {
        font-size: 16px;
        text-align: right;
    }
}

/* ---- Steps ---- */
.etw-step {
    margin-bottom: 44px;
}

.etw-step-title {
    font-weight: 800;
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--c-ink);
}

/* ---- Category pills (pick one or more) ---- */
.etw-type-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.etw-type-btn {
    border: 2px solid var(--c-ink);
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 15px;
    background: var(--c-white);
    color: var(--c-ink);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.etw-type-btn[data-value="Festivals"] { --pill: var(--color-festivals); }
.etw-type-btn[data-value="Food"] { --pill: var(--color-food); }
.etw-type-btn[data-value="Drink"] { --pill: var(--color-drink); }
.etw-type-btn[data-value="Music"] { --pill: var(--color-music); }
.etw-type-btn[data-value="Kids"] { --pill: var(--color-kids); }
.etw-type-btn[data-value="Shopping"] { --pill: var(--color-shopping); }
.etw-type-btn[data-value="Other"] { --pill: var(--color-other); }

.etw-type-btn.is-active {
    background: var(--pill, var(--c-ink));
    border-color: var(--pill, var(--c-ink));
}

.etw-type-btn[data-value="Drink"].is-active,
.etw-type-btn[data-value="Kids"].is-active,
.etw-type-btn[data-value="Shopping"].is-active,
.etw-type-btn[data-value="Other"].is-active {
    color: var(--c-white);
}

.etw-field-hint {
    font-size: 13px;
    color: var(--c-muted);
    margin-top: 10px;
}

.etw-field-hint.is-error {
    color: var(--c-error);
}

/* ---- Inputs ---- */
.etw-field {
    margin-bottom: 16px;
}

.etw-field:last-child {
    margin-bottom: 0;
}

.etw-input,
.etw-textarea {
    display: block;
    width: 100%;
    padding: 16px 20px;
    border-radius: 999px;
    border: 2px solid var(--c-ink);
    font-family: inherit;
    font-size: 15px;
    color: var(--c-ink);
    background: var(--c-white);
}

.etw-textarea {
    border-radius: 16px;
    min-height: 140px;
    resize: vertical;
}

.etw-input::placeholder,
.etw-textarea::placeholder {
    color: var(--c-muted);
}

/* ---- Date and time ---- */
.etw-datetime-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 600px) {
    .etw-datetime-row {
        grid-template-columns: 1fr 1fr;
    }
}

.etw-datetime-group {
    border: 2px solid var(--c-ink);
    border-radius: 16px;
    padding: 18px 20px;
}

.etw-datetime-label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 10px;
}

.etw-datetime-fields {
    display: flex;
    gap: 10px;
}

.etw-datetime-fields .etw-input {
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    color: transparent; /* hides the browser's grey "mm/dd/yyyy" until the field is used */
}

.etw-datetime-fields .etw-input:focus,
.etw-datetime-fields .etw-input.has-value {
    color: var(--c-ink);
}

/* ---- Submit ---- */
.etw-submit-row {
    text-align: center;
    margin-top: 12px;
}

.etw-submit-btn {
    width: 100%;
    background: var(--c-ink);
    color: var(--c-white);
    border-color: var(--c-ink);
}

.etw-submit-btn:hover {
    background: var(--c-white);
    color: var(--c-ink);
}

/* ---- Thank-you and error states ---- */
.etw-thankyou {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.etw-thankyou.is-visible {
    display: block;
}

.etw-thankyou-title {
    font-weight: 800;
    font-size: clamp(28px, 5vw, 40px);
    margin-bottom: 12px;
}

.etw-thankyou-sub {
    color: var(--c-ink);
    margin-bottom: 32px;
    font-size: 16px;
}

.etw-thankyou-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

@media (min-width: 480px) {
    .etw-thankyou-actions {
        flex-direction: row;
        justify-content: center;
    }
}

.etw-error-banner {
    display: none;
    border: 2px solid var(--c-error);
    color: var(--c-error);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 32px;
}

.etw-error-banner.is-visible {
    display: block;
}
