/* =============================================
   School Events – Frontend Styles v1.6
   ============================================= */

/* CSS colour variables — defaults; overridden by JS when banner exists */
.sev-front-wrap {
    direction: rtl;
    text-align: right;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    max-width: 620px;
    margin: 0 auto 40px;
    --sev-accent:      #2b7fc4;
    --sev-accent-dark: #1e4d78;
    --sev-accent-rgb:  43, 127, 196;
}

/* ── Banner image ── */
.sev-front-banner {
    width: 100%;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    max-height: 280px;
    line-height: 0;               /* kill inline gap */
}
.sev-banner-img {
    width: 100%;
    display: block;
    max-height: 280px;
    object-fit: cover;
}

/* ── Event info header ── */
.sev-front-header {
    background: linear-gradient(135deg, var(--sev-accent-dark) 0%, var(--sev-accent) 100%);
    color: #fff;
    padding: 20px 28px 18px;
    border-radius: 14px 14px 0 0;          /* rounded when no banner */
    transition: background 0.5s ease;
}
/* When a banner is above — square top corners */
.sev-front-header--has-banner {
    border-radius: 0;
}

.sev-front-title { font-size: 20px; margin: 0 0 10px; color: #fff; font-weight: 700; }
.sev-front-meta  { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 14px; color: rgba(255,255,255,.92); }
.sev-front-type  { background: rgba(255,255,255,.22); padding: 3px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.sev-front-desc  { margin-top: 12px; font-size: 14px; color: rgba(255,255,255,.85); line-height: 1.65; }

/* ── Registration form wrapper ── */
.sev-front-form-wrap {
    background: #fff;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 14px 14px;
    padding: 24px 28px;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
}
.sev-front-form-wrap h3 {
    margin: 0 0 20px;
    font-size: 17px;
    color: var(--sev-accent-dark);
    border-bottom: 2px solid var(--sev-accent);
    padding-bottom: 10px;
    transition: color 0.5s ease, border-color 0.5s ease;
}

/* ── Fields ── */
.sev-field { margin-bottom: 18px; }
.sev-field label { display: block; font-size: 14px; font-weight: 600; color: #333; margin-bottom: 6px; }
.sev-required { color: #dc3545; margin-right: 2px; }

.sev-select,
.sev-input,
.sev-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #ced4da;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    direction: rtl;
    text-align: right;
    color: #333;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
    background: #fdfdfd;
}
.sev-select:focus,
.sev-input:focus {
    outline: none;
    border-color: var(--sev-accent);
    box-shadow: 0 0 0 3px rgba(var(--sev-accent-rgb), .18);
}
.sev-input[dir="ltr"] { text-align: left; }

/* ── Submit button — adapts to banner colour ── */
.sev-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--sev-accent-dark) 0%, var(--sev-accent) 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: .3px;
    transition: opacity .2s, transform .1s, background .5s ease;
}
.sev-submit-btn:hover    { opacity: .91; }
.sev-submit-btn:active   { transform: scale(.98); }
.sev-submit-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ── Result messages ── */
.sev-front-result { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-size: 15px; font-weight: 600; text-align: center; }
.sev-front-result.success { background: #d4edda; color: #155724; border: 1.5px solid #c3e6cb; }
.sev-front-result.error   { background: #f8d7da; color: #721c24; border: 1.5px solid #f5c6cb; }

/* ── No participant list warning ── */
.sev-no-list { background: #fff3cd; color: #856404; padding: 12px 16px; border-radius: 8px; border: 1px solid #ffc107; font-size: 14px; margin: 0; }

/* =========================================================
   CEREMONY REGISTRATION STYLES
   ========================================================= */
.sev-age-notice {
    background: #fff3cd; border: 1.5px solid #ffc107;
    border-radius: 0; padding: 12px 20px;
    font-size: 14px; color: #664d03; text-align: right;
}
.sev-guests-section {
    background: #f8f9ff; border: 1px solid #dee2e6;
    border-radius: 10px; padding: 16px 18px; margin-bottom: 18px;
}
.sev-guests-label { font-size:14px; font-weight:700; color:var(--sev-accent-dark); margin:0 0 14px; }

/* ── Confirmation card ── */
.sev-confirm-card { background:#fff; border:2px solid #28a745; border-radius:0 0 14px 14px; overflow:hidden; }
.sev-confirm-header { background:linear-gradient(135deg,#155724,#28a745); color:#fff; text-align:center; font-size:20px; font-weight:700; padding:18px; }
.sev-confirm-body { display:flex; gap:20px; padding:20px 24px; align-items:flex-start; flex-wrap:wrap; }
.sev-confirm-qr-wrap { flex-shrink:0; }
.sev-confirm-qr { width:160px; height:160px; border:1px solid #dee2e6; border-radius:8px; display:block; }
.sev-confirm-details { flex:1; min-width:180px; }
.sev-confirm-details p { margin:6px 0; font-size:14px; color:#333; }
.sev-confirm-notice { background:#e8f4fd; border:1px solid #b8daff; border-radius:8px; padding:10px 14px; font-size:13px; color:#004085; margin-top:12px !important; }
.sev-confirm-guests-row { display:none; }
.sev-print-btn { display:block; width:100%; padding:14px; background:linear-gradient(135deg,#1e4d78,#2b7fc4); color:#fff; border:none; font-size:15px; font-weight:700; cursor:pointer; font-family:inherit; transition:opacity .2s; }
.sev-print-btn:hover { opacity:.9; }

@media print {
    .sev-front-form-wrap, .sev-age-notice, .sev-print-btn { display:none !important; }
    .sev-confirm-card { border:1px solid #ccc !important; }
}
