/* ============================================================
   Conference Registration – Frontend Styles
   ============================================================ */

.conf-reg-wrap {
    max-width: 640px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---- Message banner ---- */
.conf-reg-message {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.5;
}
.conf-reg-message.is-success { background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; }
.conf-reg-message.is-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }

/* ---- Field ---- */
.conf-reg-field {
    margin-bottom: 18px;
}
.conf-reg-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #374151;
}
.conf-reg-field label span { color: #ef4444; }
.conf-reg-privacy label span,
.conf-reg-privacy label span span { color: inherit !important; }

.conf-reg-field input[type="text"],
.conf-reg-field input[type="email"],
.conf-reg-field select,
.conf-reg-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    color: #111827;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .15s;
}
.conf-reg-field input:focus,
.conf-reg-field select:focus,
.conf-reg-field textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* ---- Two-column row ---- */
.conf-reg-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 480px) {
    .conf-reg-row { grid-template-columns: 1fr; }
}

/* ---- Buttons ---- */
.conf-reg-btn {
    display: inline-block;
    padding: 11px 24px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.conf-reg-btn:hover { background: #1d4ed8; }
.conf-reg-btn:disabled { opacity: .6; cursor: not-allowed; }

.conf-reg-btn--danger { background: #dc2626; margin-left: 12px; }
.conf-reg-btn--danger:hover { background: #b91c1c; }

.conf-reg-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

/* ---- Misc ---- */
.conf-reg-note  { color: #6b7280; font-size: 13px; margin-bottom: 20px; }
.conf-reg-error  { color: #991b1b; }
.conf-reg-notice { color: #92400e; background: #fffbeb; border: 1px solid #fde68a; padding: 12px 16px; border-radius: 6px; }

/* ---- Check-in page ---- */
.conf-checkin-wrap h3 { margin-top: 0; }
.conf-reg-success { background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; padding: 14px 18px; border-radius: 6px; margin-bottom: 16px; }
.conf-reg-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; padding: 14px 18px; border-radius: 6px; margin-bottom: 16px; }

.conf-checkin-table { border-collapse: collapse; width: 100%; margin: 12px 0 20px; font-size: 14px; }
.conf-checkin-table th,
.conf-checkin-table td { padding: 8px 12px; border: 1px solid #e5e7eb; text-align: left; }
.conf-checkin-table th { background: #f9fafb; width: 35%; }

/* ============================================================
   Einlasskontrolle – mobile-first Check-in UI
   ============================================================ */

/* PIN gate */
.conf-checkin-pin-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 20px;
}
.conf-checkin-pin-box {
    background: #fff;
    border-radius: 16px;
    padding: 40px 32px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,.12);
}
.conf-checkin-pin-icon { font-size: 48px; margin-bottom: 8px; }
.conf-checkin-pin-box h2 { margin: 0 0 12px; font-size: 22px; }
.conf-checkin-pin-error { color: #dc2626; background: #fef2f2; border-radius: 6px; padding: 8px 12px; font-size: 14px; margin-bottom: 12px; }

/* Check-in app */
.conf-checkin-app {
    max-width: 480px;
    margin: 0 auto;
    padding: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Result card */
.conf-checkin-result {
    border-radius: 16px;
    padding: 28px 24px;
    margin-bottom: 20px;
    text-align: center;
    animation: conf-pop .25s ease;
}
@keyframes conf-pop {
    from { transform: scale(.92); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
.conf-checkin-ok   { background: #ecfdf5; border: 2px solid #10b981; }
.conf-checkin-fail { background: #fef2f2; border: 2px solid #ef4444; }

.conf-checkin-icon { font-size: 56px; line-height: 1; margin-bottom: 8px; }
.conf-checkin-name { font-size: 24px; font-weight: 700; color: #111827; margin-bottom: 4px; }
.conf-checkin-msg  { font-size: 15px; color: #6b7280; margin-bottom: 12px; }

.conf-checkin-details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 12px;
}
.conf-checkin-details span {
    background: rgba(0,0,0,.07);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 13px;
    color: #374151;
}
.conf-checkin-allergy {
    background: #fef9c3 !important;
    color: #92400e !important;
    font-weight: 600;
}

/* Scan hint */
.conf-checkin-scan-hint {
    text-align: center;
    padding: 32px 16px;
    color: #9ca3af;
}
.conf-checkin-scan-icon { font-size: 64px; margin-bottom: 8px; }
.conf-checkin-scan-hint p { font-size: 16px; margin: 0; }
.conf-checkin-scan-hint small { font-size: 13px; }

/* Manual UUID form */
.conf-checkin-manual-form {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.conf-checkin-manual-form input {
    flex: 1;
    padding: 12px 14px;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    min-width: 0;
}
.conf-checkin-manual-form input:focus {
    outline: none;
    border-color: #2563eb;
}
.conf-checkin-manual-form button {
    padding: 12px 20px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

/* Next participant link */
.conf-checkin-next {
    display: block;
    text-align: center;
    padding: 14px;
    background: #f3f4f6;
    border-radius: 10px;
    color: #374151;
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
}
.conf-checkin-next:hover { background: #e5e7eb; }

/* New fields: salutation/title side by side */
.conf-reg-field--small {
    flex: 1 1 calc(50% - 8px);
    min-width: 140px;
}

/* Privacy checkbox */
.conf-reg-privacy {
    margin-top: 8px;
}
.conf-reg-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: inherit;
}
.conf-reg-checkbox-label span,
.conf-reg-checkbox-label a {
    color: inherit !important;
}
.conf-reg-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.conf-reg-checkbox-label a {
    color: inherit;
    text-decoration: underline;
}
