/* FC Meilen Family Days — Public Styles v2 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --fcmfd-primary: #F5B800;
    --fcmfd-primary-dark: #D4A000;
    --fcmfd-primary-text: #231F20;
    --fcmfd-success: #059669;
    --fcmfd-danger: #dc2626;
    --fcmfd-gray-50: #fafaf8;
    --fcmfd-gray-100: #f3f1ec;
    --fcmfd-gray-200: #e5e1d8;
    --fcmfd-gray-400: #9ca3af;
    --fcmfd-gray-600: #4b5563;
    --fcmfd-gray-800: #231F20;
    --fcmfd-radius: 10px;
    --fcmfd-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

.fcmfd-container * {
    box-sizing: border-box;
    font-family: 'Inter', system-ui, sans-serif;
}

.fcmfd-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

/* ── Card ── */
.fcmfd-card {
    background: #fff;
    border: 1px solid var(--fcmfd-gray-200);
    border-radius: var(--fcmfd-radius);
    padding: 24px;
    box-shadow: var(--fcmfd-shadow);
}

/* ── Form header ── */
.fcmfd-form-header {
    margin-bottom: 24px;
}

.fcmfd-form-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--fcmfd-gray-800);
    margin: 0 0 8px;
}

.fcmfd-form-description {
    color: var(--fcmfd-gray-600);
    margin: 0 0 8px;
    line-height: 1.6;
}

.fcmfd-deadline-note {
    color: var(--fcmfd-gray-600);
    font-size: 14px;
    margin: 4px 0 0;
}

/* ── Group block ── */
.fcmfd-group-block {
    border: 2px solid var(--fcmfd-primary);
    border-radius: var(--fcmfd-radius);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.fcmfd-group-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--fcmfd-primary);
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--fcmfd-gray-200);
}

/* ── Fields ── */
.fcmfd-field-group {
    margin-bottom: 20px;
}

.fcmfd-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--fcmfd-gray-800);
    margin-bottom: 6px;
}

.fcmfd-required {
    color: var(--fcmfd-danger);
    margin-left: 2px;
}

.fcmfd-from-profile {
    font-size: 11px;
    background: #FFF3C0;
    color: var(--fcmfd-primary-text);
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 6px;
    font-weight: 500;
}

.fcmfd-input,
.fcmfd-textarea,
.fcmfd-select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--fcmfd-gray-200);
    border-radius: 8px;
    font-size: 15px;
    color: var(--fcmfd-gray-800);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
    appearance: none;
}

.fcmfd-input:focus,
.fcmfd-textarea:focus,
.fcmfd-select:focus {
    border-color: var(--fcmfd-primary);
    box-shadow: 0 0 0 3px rgba(245, 184, 0, .18);
}

.fcmfd-input:disabled,
.fcmfd-textarea:disabled {
    background: var(--fcmfd-gray-100);
    color: var(--fcmfd-gray-400);
    cursor: not-allowed;
}

.fcmfd-textarea {
    resize: vertical;
    min-height: 100px;
}

.fcmfd-hint {
    color: var(--fcmfd-gray-400);
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* ── Two-col form row ── */
.fcmfd-form-row.fcmfd-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 520px) {
    .fcmfd-form-row.fcmfd-two-col {
        grid-template-columns: 1fr;
    }
}

/* ── Radio / Checkbox ── */
.fcmfd-radio-group,
.fcmfd-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fcmfd-timeslot-group .fcmfd-radio-label {
    border-left: 3px solid var(--fcmfd-primary);
}

.fcmfd-clear-selection {
    background: none;
    border: none;
    padding: 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--fcmfd-danger);
    text-decoration: underline;
    cursor: pointer;
    margin-bottom: 8px;
    align-self: flex-end;
    transition: color 0.2s;
}

.fcmfd-clear-selection:hover {
    color: #991b1b;
}

.fcmfd-radio-label,
.fcmfd-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--fcmfd-gray-50);
    border: 1.5px solid var(--fcmfd-gray-200);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    font-size: 14px;
    font-weight: 500;
}

.fcmfd-radio-label:hover:not(.fcmfd-option-full),
.fcmfd-checkbox-label:hover:not(.fcmfd-option-full) {
    border-color: var(--fcmfd-primary);
    background: #eff6ff;
}

.fcmfd-radio-label input,
.fcmfd-checkbox-label input {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--fcmfd-primary-text);
}

.fcmfd-option-full {
    opacity: .5;
    cursor: not-allowed;
    background: var(--fcmfd-gray-100) !important;
    border-color: var(--fcmfd-gray-200) !important;
}

.fcmfd-option-count {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--fcmfd-gray-400);
    white-space: nowrap;
}

.fcmfd-option-full .fcmfd-option-count {
    color: var(--fcmfd-danger);
}

.fcmfd-radio-label.fcmfd-selected {
    background: #eff6ff;
    border-color: var(--fcmfd-primary);
}

.fcmfd-radio-label.fcmfd-blocked {
    background: #fef2f2;
    border-color: #fca5a5;
    opacity: .65;
    cursor: not-allowed;
}

.fcmfd-option-blocked-text {
    font-size: 11px;
    color: var(--fcmfd-danger);
    margin-left: 4px;
    font-style: italic;
}

/* ── Buttons ── */
/* Button Elements */
body .fcmfd-btn,
body a.fcmfd-btn,
body button.fcmfd-btn,
body input[type="submit"].fcmfd-btn,
body input[type="button"].fcmfd-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    line-height: normal;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none !important;
    /* Force no underline */
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

/* Primary Button High Specificity */
body .inside-article a.fcmfd-btn.fcmfd-btn-primary,
body .inside-article button.fcmfd-btn.fcmfd-btn-primary,
body .fcmfd-btn.fcmfd-btn-primary,
body a.fcmfd-btn.fcmfd-btn-primary,
body button.fcmfd-btn.fcmfd-btn-primary,
body input[type="submit"].fcmfd-btn.fcmfd-btn-primary {
    background: var(--fcmfd-primary) !important;
    color: var(--fcmfd-primary-text) !important;
    border-color: var(--fcmfd-primary) !important;
    font-weight: 700 !important;
}

body .inside-article a.fcmfd-btn.fcmfd-btn-primary:hover,
body .inside-article button.fcmfd-btn.fcmfd-btn-primary:hover,
body .fcmfd-btn.fcmfd-btn-primary:hover,
body a.fcmfd-btn.fcmfd-btn-primary:hover,
body button.fcmfd-btn.fcmfd-btn-primary:hover,
body input[type="submit"].fcmfd-btn.fcmfd-btn-primary:hover {
    background: var(--fcmfd-primary-dark) !important;
    border-color: var(--fcmfd-primary-dark) !important;
    color: var(--fcmfd-primary-text) !important;
}

.fcmfd-btn-secondary {
    background: #fff;
    color: var(--fcmfd-primary-text);
    border-color: var(--fcmfd-primary);
}

.fcmfd-btn-secondary:hover {
    background: #FFF8E0;
    color: var(--fcmfd-primary-text);
}

.fcmfd-btn-full {
    width: 100%;
}

.fcmfd-submit-wrap {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── Notices ── */
.fcmfd-notice {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.fcmfd-notice-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.fcmfd-notice-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.fcmfd-notice-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.fcmfd-field-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    background: #FFF3C0;
    color: #231F20;
    flex: 1;
}

.fcmfd-type-timeslot {
    background: #ede9fe;
    color: #5b21b6;
}

.fcmfd-type-radio,
.fcmfd-type-checkbox {
    background: #fef3c7;
    color: #92400e;
}

.fcmfd-type-email,
.fcmfd-type-number {
    background: #d1fae5;
    color: #065f46;
}

/* ── Ticket Card ── */
/* ── TICKET CARD REDESIGN ── */
.fcmfd-ticket {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
    border: 1px solid var(--fcmfd-gray-200);
    position: relative;
    margin-bottom: 28px;
    padding: 24px;
    gap: 20px;
    overflow: hidden;
}

/* Simulated cutouts on left and right */
.fcmfd-ticket::before,
.fcmfd-ticket::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: #fff;
    /* fallback */
    border-radius: 50%;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1);
}

/* We override background to match page background so they look like holes */
body .fcmfd-ticket::before,
body .fcmfd-ticket::after {
    background: var(--fcmfd-gray-50);
}

.fcmfd-ticket::before {
    left: -12px;
}

.fcmfd-ticket::after {
    right: -12px;
}

.fcmfd-ticket-thumb {
    flex-shrink: 0;
}

.fcmfd-ticket-photo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--fcmfd-primary);
}

.fcmfd-ticket-avatar {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: var(--fcmfd-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.fcmfd-ticket-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fcmfd-ticket-date {
    color: var(--fcmfd-gray-400);
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fcmfd-ticket-event {
    color: var(--fcmfd-primary-text);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.fcmfd-ticket-user {
    color: var(--fcmfd-gray-600);
    font-size: 13px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fcmfd-ticket-action {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border-left: 1px dashed var(--fcmfd-gray-200);
    padding-left: 20px;
}

.fcmfd-qr-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.fcmfd-qr-btn:hover {
    background: var(--fcmfd-gray-50);
}

.fcmfd-qr-btn-icon {
    width: 40px;
    height: 40px;
    border: 2px solid var(--fcmfd-primary-text);
    border-radius: 8px;
    padding: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fcmfd-qr-btn-icon canvas,
.fcmfd-qr-btn-icon img {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.fcmfd-qr-btn span {
    font-size: 12px;
    font-weight: 600;
    color: var(--fcmfd-primary-text);
    background: var(--fcmfd-primary);
    padding: 2px 8px;
    border-radius: 12px;
}

/* ── QR MODAL POPUP ── */
.fcmfd-qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
    padding: 20px;
}

.fcmfd-qr-modal.is-active {
    visibility: visible;
    opacity: 1;
}

.fcmfd-qr-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.fcmfd-qr-modal-content {
    background: #fff;
    width: 100%;
    max-width: 400px;
    border-radius: 24px;
    padding: 40px 30px;
    position: relative;
    z-index: 1;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fcmfd-qr-modal.is-active .fcmfd-qr-modal-content {
    transform: translateY(0);
}

.fcmfd-qr-modal-date {
    color: var(--fcmfd-gray-400);
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.fcmfd-qr-modal-event {
    color: var(--fcmfd-primary-text);
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 32px 0;
    line-height: 1.3;
}

.fcmfd-qr-modal-frame {
    display: inline-block;
    padding: 16px;
    background: #fff;
    border: 4px solid var(--fcmfd-gray-800);
    border-radius: 16px;
    margin-bottom: 24px;
}

.fcmfd-qr-modal-name {
    display: block;
    color: var(--fcmfd-primary-text);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.fcmfd-qr-modal-desc {
    color: var(--fcmfd-gray-400);
    font-size: 14px;
    margin: 0;
}

.fcmfd-qr-modal-close {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--fcmfd-primary);
    color: var(--fcmfd-primary-text);
    border: none;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(245, 184, 0, 0.4);
    transition: transform 0.2s;
}

.fcmfd-qr-modal-close:hover {
    transform: translateX(-50%) scale(1.1);
}

@media (max-width: 600px) {
    .fcmfd-ticket {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .fcmfd-ticket-action {
        border-left: none;
        border-top: 1px dashed var(--fcmfd-gray-200);
        padding-left: 0;
        padding-top: 16px;
        width: 100%;
        flex-direction: row;
        justify-content: center;
    }
}

/* ── Answer table ── */
.fcmfd-answer-table {
    width: 100%;
    border-collapse: collapse;
}

.fcmfd-answer-table th,
.fcmfd-answer-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--fcmfd-gray-200);
    text-align: left;
    font-size: 14px;
}

.fcmfd-answer-table th {
    font-weight: 600;
    color: var(--fcmfd-gray-600);
    width: 35%;
    background: var(--fcmfd-gray-50);
}

.fcmfd-answer-table td {
    color: var(--fcmfd-gray-800);
}

.fcmfd-answer-table tr:last-child th,
.fcmfd-answer-table tr:last-child td {
    border-bottom: none;
}

/* ── Auth ── */
.fcmfd-auth-wrap {
    padding-top: 32px;
}

.fcmfd-auth-card {
    background: #fff;
    border: 1px solid var(--fcmfd-gray-200);
    border-radius: 14px;
    padding: 32px 36px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
    max-width: 480px;
    margin: 0 auto;
}

.fcmfd-auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.fcmfd-auth-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
}

.fcmfd-auth-header p {
    color: var(--fcmfd-gray-600);
    margin: 0;
    font-size: 15px;
}

.fcmfd-auth-footer {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--fcmfd-gray-600);
}

.fcmfd-auth-footer a {
    color: var(--fcmfd-primary);
    font-weight: 600;
    text-decoration: none;
}

.fcmfd-auth-footer a:hover {
    text-decoration: underline;
}

/* ── Remember row with forgot link ── */
.fcmfd-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.fcmfd-forgot-link {
    font-size: 13px;
    color: var(--fcmfd-gray-600);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s;
}

.fcmfd-forgot-link:hover {
    color: var(--fcmfd-primary-text);
    text-decoration: underline;
}

/* ── CAPTCHA ── */
.fcmfd-captcha-group {
    margin-top: 4px;
}

.fcmfd-captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fcmfd-captcha-question {
    display: inline-flex;
    align-items: center;
    background: var(--fcmfd-gray-100);
    border: 1px solid var(--fcmfd-gray-200);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 16px;
    font-weight: 700;
    color: var(--fcmfd-gray-800);
    letter-spacing: 1px;
    white-space: nowrap;
    user-select: none;
}

.fcmfd-captcha-input {
    max-width: 100px !important;
    text-align: center;
    font-size: 16px !important;
    font-weight: 600;
}

/* ── File upload ── */
.fcmfd-file-upload-wrap {
    position: relative;
}

.fcmfd-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.fcmfd-file-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 2px dashed var(--fcmfd-gray-200);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--fcmfd-gray-600);
    transition: border-color .15s;
}

.fcmfd-file-label:hover {
    border-color: var(--fcmfd-primary);
    color: var(--fcmfd-primary);
}

.fcmfd-file-label.has-file {
    border-style: solid;
    border-color: var(--fcmfd-success);
    color: var(--fcmfd-success);
}

/* ── Login-required gate ── */
.fcmfd-login-required {
    padding-top: 40px;
}

.fcmfd-card-centered {
    text-align: center;
}

.fcmfd-lock-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.fcmfd-card-centered h3 {
    font-size: 20px;
    margin: 0 0 8px;
}

.fcmfd-card-centered p {
    color: var(--fcmfd-gray-600);
    margin: 0 0 20px;
}

.fcmfd-auth-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Admin bar overrides for non-admin users ── */
#wpadminbar #wp-admin-bar-wp-logo,
#wpadminbar #wp-admin-bar-dashboard,
#wpadminbar #wp-admin-bar-new-content,
#wpadminbar #wp-admin-bar-comments,
#wpadminbar #wp-admin-bar-updates,
#wpadminbar #wp-admin-bar-view,
#wpadminbar #wp-admin-bar-site-name {
    display: none !important;
}