/* =========================================================
   FeTNA Parallel Sessions — Frontend Styles
   Purple/Pink theme matching FSP
   ========================================================= */

.fps-wrap {
    max-width: 920px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Tamil", Arial, sans-serif;
    color: #2d1a3a;
    line-height: 1.55;
}

/* ---- Header ---- */
.fps-header {
    background: linear-gradient(135deg, #6a1b9a 0%, #d81b60 100%);
    color: #fff;
    padding: 30px 32px;
    border-radius: 12px 12px 0 0;
    text-align: center;
    box-shadow: 0 4px 14px rgba(106, 27, 154, .18);
}
.fps-header-title-ta {
    font-size: 18px;
    opacity: .92;
    margin-bottom: 6px;
    letter-spacing: .3px;
}
.fps-header-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.3px;
}
.fps-header-meta {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}
.fps-pill {
    background: rgba(255,255,255,.18);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    backdrop-filter: blur(4px);
}

/* ---- Intro ---- */
.fps-intro {
    background: #fff;
    padding: 22px 32px;
    border-left: 1px solid #f0e0f0;
    border-right: 1px solid #f0e0f0;
    color: #4a3360;
    font-size: 15px;
}
.fps-intro p { margin: 0 0 10px; }
.fps-intro p:last-child { margin-bottom: 0; }

/* ---- Closed notice ---- */
.fps-closed {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    color: #7a4a90;
    font-size: 18px;
    font-weight: 500;
}

/* ---- Success / Error notices ---- */
.fps-success {
    background: #e8f5e9;
    border-left: 4px solid #43a047;
    padding: 16px 22px;
    margin: 18px 32px;
    border-radius: 6px;
    color: #1b5e20;
    font-size: 15px;
}
.fps-error {
    background: #fce4ec;
    border-left: 4px solid #d32f2f;
    padding: 16px 22px;
    margin: 18px 32px;
    border-radius: 6px;
    color: #b71c1c;
    font-size: 15px;
}
.fps-error ul { margin: 6px 0 0 18px; padding: 0; }

/* ---- Form ---- */
.fps-form {
    background: #fff;
    padding: 14px 32px 28px;
    border: 1px solid #f0e0f0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 20px rgba(106, 27, 154, .06);
}

/* ---- Sections ---- */
.fps-section {
    border: none;
    border-top: 1px solid #f3e5f5;
    padding: 22px 0 6px;
    margin: 0;
}
.fps-section:first-of-type { border-top: none; padding-top: 8px; }

.fps-section legend {
    font-size: 18px;
    font-weight: 700;
    color: #6a1b9a;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 0 16px;
}
.fps-num {
    background: linear-gradient(135deg, #6a1b9a, #d81b60);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}
.fps-legend-ta {
    color: #9c5cb5;
    font-weight: 500;
    font-size: 15px;
}

/* ---- Field grid ---- */
.fps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
    margin-bottom: 14px;
}
.fps-field {
    margin-bottom: 14px;
}
.fps-field.fps-full,
.fps-grid .fps-field { margin-bottom: 0; }

.fps-field label {
    display: block;
    font-weight: 600;
    color: #4a2860;
    margin-bottom: 6px;
    font-size: 14px;
}
.fps-req { color: #d81b60; font-weight: 700; }
.fps-help {
    font-weight: 400;
    color: #8b6ba0;
    font-size: 13px;
}
.fps-help-block {
    font-size: 13px;
    color: #6a4a85;
    background: #faf5fc;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    border-left: 3px solid #c179d8;
}

/* ---- Inputs ---- */
.fps-form input[type="text"],
.fps-form input[type="email"],
.fps-form input[type="tel"],
.fps-form input[type="number"],
.fps-form select,
.fps-form textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d6c1e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}
.fps-form input:focus,
.fps-form select:focus,
.fps-form textarea:focus {
    outline: none;
    border-color: #9c27b0;
    box-shadow: 0 0 0 3px rgba(156, 39, 176, .12);
}
.fps-form textarea { resize: vertical; min-height: 70px; }

/* ---- Radio groups ---- */
.fps-radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.fps-radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #d6c1e0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all .15s;
}
.fps-radio:has(input:checked) {
    background: linear-gradient(135deg, #f3e5f5, #fce4ec);
    border-color: #9c27b0;
    font-weight: 600;
    color: #6a1b9a;
}
.fps-radio input { margin: 0; }

/* ---- Block notice (No ticket) ---- */
.fps-block-notice {
    background: #fff3e0;
    border-left: 4px solid #f57c00;
    color: #6d2e00;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

/* ---- Counter ---- */
.fps-counter {
    text-align: right;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}
.fps-counter.warn { color: #f57c00; font-weight: 600; }
.fps-counter.over { color: #d32f2f; font-weight: 700; }

/* ---- Info card ---- */
.fps-info-card {
    background: linear-gradient(135deg, #f3e5f5 0%, #fce4ec 100%);
    border-radius: 8px;
    padding: 14px 18px;
    margin: 4px 0 16px;
    font-size: 14px;
    color: #4a2860;
    border-left: 4px solid #ab47bc;
}

/* ---- Co-speaker repeater ---- */
.fps-cospeaker-row {
    background: #faf5fc;
    padding: 14px 16px;
    border-radius: 8px;
    margin-top: 12px;
    border: 1px solid #ead0f0;
}
.fps-cospeaker-row .fps-row-title {
    font-weight: 600;
    color: #6a1b9a;
    margin-bottom: 8px;
    font-size: 14px;
}
.fps-cospeaker-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

/* ---- Guest checkboxes ---- */
.fps-guest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 6px;
}
.fps-guest {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #d6c1e0;
    border-radius: 6px;
    cursor: pointer;
    align-items: flex-start;
    background: #fff;
    transition: all .15s;
    font-size: 14px;
}
.fps-guest:has(input:checked) {
    background: linear-gradient(135deg, #f3e5f5, #fce4ec);
    border-color: #9c27b0;
}
.fps-guest input { margin-top: 4px; }
.fps-guest em { color: #8b6ba0; font-style: normal; font-size: 13px; }

/* ---- Time slot grid ---- */
.fps-slot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 6px;
}
.fps-slot {
    display: block;
    padding: 14px 12px;
    border: 1px solid #d6c1e0;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    text-align: center;
    font-size: 14px;
    transition: all .15s;
}
.fps-slot:has(input:checked) {
    background: linear-gradient(135deg, #f3e5f5, #fce4ec);
    border-color: #9c27b0;
    box-shadow: 0 2px 6px rgba(156, 39, 176, .12);
}
.fps-slot input { margin-right: 4px; }
.fps-slot strong { color: #6a1b9a; }
.fps-slot em { color: #8b6ba0; font-size: 12px; font-style: normal; }

/* ---- Turnstile ---- */
.fps-turnstile-wrap {
    margin: 18px 0 8px;
    display: flex;
    justify-content: center;
}

/* ---- Submit row ---- */
.fps-submit-row {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #f3e5f5;
    text-align: center;
}
.fps-btn {
    background: linear-gradient(135deg, #6a1b9a 0%, #d81b60 100%);
    color: #fff;
    border: none;
    padding: 14px 38px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(106, 27, 154, .25);
    transition: transform .15s, box-shadow .15s;
    font-family: inherit;
}
.fps-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(106, 27, 154, .35);
}
.fps-btn:disabled {
    background: #c0a6cc;
    cursor: not-allowed;
    box-shadow: none;
}
.fps-privacy {
    margin: 12px 0 0;
    font-size: 12px;
    color: #8b6ba0;
}

/* ---- Branding ---- */
.fps-branding {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: #999;
}
.fps-branding a {
    color: #6a1b9a;
    text-decoration: none;
    font-weight: 500;
}

/* ---- Responsive ---- */
@media (max-width: 720px) {
    .fps-wrap { margin: 16px; }
    .fps-grid { grid-template-columns: 1fr; gap: 12px; }
    .fps-cospeaker-grid { grid-template-columns: 1fr; }
    .fps-guest-grid { grid-template-columns: 1fr; }
    .fps-slot-grid { grid-template-columns: 1fr 1fr; }
    .fps-header { padding: 22px 18px; border-radius: 8px 8px 0 0; }
    .fps-header-title { font-size: 22px; }
    .fps-intro, .fps-form { padding-left: 18px; padding-right: 18px; }
}

/* =========================================================
   ADMIN STYLES
   ========================================================= */
.fps-admin .fps-admin-count {
    background: #f3e5f5;
    color: #6a1b9a;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    vertical-align: middle;
}

.fps-admin-filters {
    background: #fff;
    padding: 12px 14px;
    border: 1px solid #e0d0e8;
    border-radius: 6px;
    margin: 14px 0 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.fps-admin-filters select,
.fps-admin-filters input[type="search"] { min-width: 160px; }

.fps-table { background: #fff; }
.fps-table th { font-weight: 600; color: #4a2860; }

.fps-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.fps-status-new        { background: #e3f2fd; color: #1565c0; }
.fps-status-reviewing  { background: #fff8e1; color: #ef6c00; }
.fps-status-approved   { background: #e8f5e9; color: #2e7d32; }
.fps-status-rejected   { background: #ffebee; color: #c62828; }
.fps-status-waitlisted { background: #f3e5f5; color: #6a1b9a; }

.fps-detail-row { background: #faf5fc !important; }
.fps-detail { padding: 18px 20px; }
.fps-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 22px;
    margin-bottom: 16px;
    font-size: 13px;
}
.fps-detail-section { margin: 14px 0; }
.fps-detail-section h3 { margin: 0 0 6px; font-size: 14px; color: #6a1b9a; text-transform: uppercase; letter-spacing: .5px; }
.fps-detail-box {
    background: #fff;
    border: 1px solid #ead0f0;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.55;
    max-height: 220px;
    overflow-y: auto;
}
.fps-chip {
    display: inline-block;
    background: #f3e5f5;
    color: #6a1b9a;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    margin: 2px 4px 2px 0;
    font-weight: 500;
}
.fps-mini-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #ead0f0;
    border-radius: 6px;
    overflow: hidden;
    font-size: 13px;
}
.fps-mini-table th { background: #f3e5f5; color: #4a2860; padding: 6px 10px; text-align: left; }
.fps-mini-table td { padding: 6px 10px; border-top: 1px solid #ead0f0; }
.fps-status-form { background: #fff; border: 1px solid #ead0f0; border-radius: 6px; padding: 14px; margin-top: 14px; }
.fps-status-form h3 { margin-top: 0; }
.fps-detail-meta { color: #8b6ba0; font-size: 11px; margin-top: 10px; }

.fps-card {
    background: #fff;
    border: 1px solid #e0d0e8;
    border-radius: 6px;
    padding: 16px 20px;
    margin: 14px 0;
}
.fps-card h2 { margin-top: 0; color: #6a1b9a; border-bottom: 1px solid #f3e5f5; padding-bottom: 10px; }
.fps-card h3 { margin: 0 0 10px; color: #4a2860; }

.fps-inline-form { display: flex; gap: 8px; align-items: center; }
.fps-inline-form input[type="text"] { min-width: 280px; }
.fps-inline-edit { display: flex; gap: 8px; align-items: center; }
.fps-inline-edit input[type="text"] { min-width: 240px; }

/* ---- Danger Zone (destructive admin actions) ---- */
.fps-danger-card {
    border-color: #f5c2c7;
    background: #fff5f5;
    margin-top: 22px;
}
.fps-danger-card h3 {
    color: #b71c1c;
    border-bottom: 1px solid #f8d7d7;
    padding-bottom: 8px;
}
.fps-danger-card code {
    background: #ffe0e0;
    color: #b71c1c;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}
.fps-btn-danger {
    background: #d32f2f !important;
    color: #fff !important;
    border-color: #b71c1c !important;
}
.fps-btn-danger:hover { background: #b71c1c !important; border-color: #8b1414 !important; }
