/* event-photos/style.css — isolerad CSS för Blue1 Event Photos */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f0;
    color: #1a1a1a;
    min-height: 100dvh;
}

/* Referensmärke: no-referrer skyddar token-URL från att läcka i Referer */

.ep-page {
    max-width: 480px;
    margin: 0 auto;
    padding: 1.25rem 1rem 3rem;
}

/* ── Sidhuvud ─────────────────────────────────── */

.ep-header {
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0d8;
}

.ep-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
    color: #1a1a2e;
    line-height: 1.2;
}

.ep-header .ep-subtitle {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
}

/* ── Formulär ─────────────────────────────────── */

.ep-form-section {
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.ep-form-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: #1a1a2e;
}

.ep-field {
    margin-bottom: 1rem;
}

.ep-field label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    color: #333;
}

.ep-field .ep-hint {
    display: block;
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 0.35rem;
    font-weight: 400;
}

.ep-field input[type="text"],
.ep-field input[type="email"],
.ep-field input[type="password"] {
    display: block;
    width: 100%;
    padding: 0.8rem 0.875rem;
    font-size: 1rem;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    background: #fafafa;
    color: #1a1a1a;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .15s;
}

.ep-field input:focus {
    outline: none;
    border-color: #1a1a2e;
    background: #fff;
}

/* ── Knappar ──────────────────────────────────── */

.ep-btn {
    display: block;
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: opacity .15s, background .15s;
    min-height: 48px; /* touch target */
}

.ep-btn-primary {
    background: #1a1a2e;
    color: #fff;
    margin-top: 1.25rem;
}

.ep-btn-primary:active {
    opacity: 0.82;
}

.ep-btn-primary:disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* ── Felmeddelande ────────────────────────────── */

.ep-error-notice {
    background: #ffebee;
    border: 1px solid #ef9a9a;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: #b71c1c;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

/* ── Infotext/banderoll ───────────────────────── */

.ep-notice {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    color: #5a4800;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.ep-notice strong {
    display: block;
    margin-bottom: 0.2rem;
}

/* ── Uppladdningssektion ──────────────────────── */

.ep-upload-section {
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.ep-upload-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: #1a1a2e;
}

.ep-upload-section .ep-upload-desc {
    font-size: 0.88rem;
    color: #555;
    margin: 0 0 1rem;
}

/* Uppy-container */
#uppy-dashboard {
    border-radius: 6px;
    overflow: hidden;
}

/* Fallback filväljare (visas om JS är av eller Uppy misslyckas) */
.ep-fallback-upload {
    margin-top: 1rem;
    padding: 1rem;
    border: 2px dashed #ccc;
    border-radius: 6px;
    text-align: center;
}

.ep-fallback-upload label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: #333;
    cursor: pointer;
}

.ep-fallback-upload input[type="file"] {
    display: block;
    width: 100%;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

/* ── Bekräftelse ──────────────────────────────── */

.ep-done-section {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    text-align: center;
}

.ep-done-section .ep-done-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.ep-done-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.5rem;
}

.ep-done-section p {
    font-size: 0.9rem;
    color: #555;
    margin: 0 0 0.75rem;
}

.ep-token-box {
    background: #f0f4ff;
    border: 1px solid #b0c4f0;
    border-radius: 6px;
    padding: 0.75rem;
    margin-top: 1rem;
    text-align: left;
}

.ep-token-box strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    color: #1a1a2e;
}

.ep-token-box input[type="text"] {
    display: block;
    width: 100%;
    font-size: 0.8rem;
    padding: 0.5rem;
    border: 1px solid #b0c4f0;
    border-radius: 4px;
    background: #fff;
    color: #1a1a1a;
    word-break: break-all;
}

/* ── Hjälptext/footer ─────────────────────────── */

.ep-footer-note {
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    margin-top: 2rem;
}
