/* =====================================================================
   Férias no Clube — tema visual das telas públicas
   Aplicado somente em páginas com <body class="fc">.
   Cores extraídas do logo: azul-marinho #312783, amarelo #FFCC00, verde #009640
   ===================================================================== */

body.fc {
    --fc-navy: #312783;
    --fc-navy-dark: #221b5e;
    --fc-blue: #0b75af;
    --fc-yellow: #ffcc00;
    --fc-green: #009640;
    --fc-green-soft: #e6f5ec;
    --fc-amber: #b45309;
    --fc-amber-soft: #fef3c7;
    --fc-red: #c62828;
    --fc-red-soft: #fdecea;
    --fc-ink: #1f2937;
    --fc-muted: #6b7280;
    --fc-line: #e5e7eb;
    --fc-bg: #f4f6fb;
    --fc-card: #ffffff;
    --fc-radius: 16px;
    --fc-shadow: 0 10px 30px rgba(33, 27, 94, .10), 0 2px 6px rgba(33, 27, 94, .06);

    margin: 0;
    min-height: 100%;
    height: auto;
    background: var(--fc-bg);
    color: var(--fc-ink);
    font-family: 'Nunito', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body.fc h1, body.fc h2, body.fc h3, body.fc h4 {
    font-family: inherit;
    color: var(--fc-ink);
    text-transform: none;
    letter-spacing: 0;
}

body.fc a { color: var(--fc-blue); }
body.fc a:hover, body.fc a:focus { color: var(--fc-navy); }

/* ---------- Cabeçalho ---------- */
.fc-hero {
    position: relative;
    background: url('../img/banner.png') center / cover no-repeat, var(--fc-navy);
    color: #fff;
    padding: 36px 16px 96px;
}

.fc-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(34, 27, 94, .92) 0%, rgba(49, 39, 131, .80) 55%, rgba(11, 117, 175, .70) 100%);
}

.fc-hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--fc-green) 0 33%, var(--fc-yellow) 33% 66%, var(--fc-blue) 66% 100%);
}

.fc-hero__inner {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.fc-hero__logo {
    width: 84px;
    height: auto;
    flex: none;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25));
}

.fc-hero__eyebrow {
    margin: 0 0 2px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--fc-yellow);
}

body.fc .fc-hero__title {
    margin: 0;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
}

.fc-hero__sub {
    margin: 6px 0 0;
    font-size: 16px;
    color: rgba(255, 255, 255, .85);
}

@media (max-width: 575px) {
    .fc-hero { padding: 24px 16px 84px; }
    .fc-hero__inner { gap: 14px; }
    .fc-hero__logo { width: 60px; }
    body.fc .fc-hero__title { font-size: 26px; }
    .fc-hero__sub { font-size: 14px; }
}

/* ---------- Conteúdo ---------- */
.fc-main {
    position: relative;
    max-width: 820px;
    margin: -64px auto 48px;
    padding: 0 16px;
}

.fc-card {
    background: var(--fc-card);
    border-radius: var(--fc-radius);
    box-shadow: var(--fc-shadow);
    padding: 32px;
    margin-bottom: 20px;
}

@media (max-width: 575px) {
    .fc-card { padding: 22px 18px; }
}

body.fc .fc-card__title {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 800;
}

.fc-card__lead {
    margin: 0 0 24px;
    color: var(--fc-muted);
}

body.fc .fc-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 28px 0 14px;
    font-size: 18px;
    font-weight: 800;
}

.fc-section-title .fc-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--fc-navy);
    color: #fff;
    font-size: 14px;
}

.fc-divider {
    border: 0;
    border-top: 1px solid var(--fc-line);
    margin: 28px 0;
    max-width: none;
    height: 0;
}

/* ---------- Etapas ---------- */
.fc-steps {
    display: flex;
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    counter-reset: step;
}

.fc-steps li {
    flex: 1;
    position: relative;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--fc-muted);
    counter-increment: step;
}

.fc-steps li::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0 auto 6px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--fc-line);
    color: var(--fc-muted);
    font-size: 14px;
    position: relative;
    z-index: 1;
    transition: all .2s ease;
}

.fc-steps li + li::after {
    content: "";
    position: absolute;
    top: 15px;
    right: 50%;
    width: 100%;
    height: 2px;
    background: var(--fc-line);
}

.fc-steps li.is-done::before {
    content: "\2713";
    background: var(--fc-green);
    border-color: var(--fc-green);
    color: #fff;
}

.fc-steps li.is-done + li::after,
.fc-steps li.is-active::after,
.fc-steps li.is-done::after { background: var(--fc-green); }

.fc-steps li.is-active { color: var(--fc-navy); }

.fc-steps li.is-active::before {
    background: var(--fc-navy);
    border-color: var(--fc-navy);
    color: #fff;
    box-shadow: 0 0 0 5px rgba(49, 39, 131, .15);
}

@media (max-width: 575px) {
    .fc-steps li { font-size: 11px; }
}

/* ---------- Formulário ---------- */
body.fc .fc-field { margin-bottom: 18px; }

body.fc .fc-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--fc-ink);
}

.fc-hint {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: var(--fc-muted);
}

body.fc .form-control {
    height: 50px;
    padding: 10px 14px;
    font-size: 17px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    box-shadow: none;
    color: var(--fc-ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}

body.fc .form-control:focus {
    border-color: var(--fc-navy);
    box-shadow: 0 0 0 4px rgba(49, 39, 131, .15);
    outline: 0;
}

body.fc .form-control[readonly] {
    background: #f3f4f6;
    color: #374151;
    cursor: default;
}

body.fc .form-control::placeholder { color: #9ca3af; font-weight: 400; }

.fc-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
}

.fc-row > .fc-field { flex: 1 1 220px; }

/* ---------- Botões ---------- */
body.fc .btn {
    font-family: inherit;
    font-weight: 800;
    border-radius: 12px;
    text-shadow: none;
    background-image: none;
    box-shadow: none;
    transition: transform .08s ease, background-color .15s ease, box-shadow .15s ease;
}

body.fc .btn-lg {
    padding: 13px 26px;
    font-size: 17px;
}

body.fc .btn-primary {
    background: var(--fc-navy);
    border: 0;
    color: #fff;
    box-shadow: 0 6px 16px rgba(49, 39, 131, .25);
}

body.fc .btn-primary:hover,
body.fc .btn-primary:focus {
    background: var(--fc-navy-dark);
    color: #fff;
}

body.fc .btn-primary:active { transform: translateY(1px); }

body.fc .btn-success {
    background: var(--fc-green);
    border: 0;
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 150, 64, .25);
}

body.fc .btn-success:hover,
body.fc .btn-success:focus { background: #007a34; color: #fff; }

body.fc .btn-ghost {
    background: #fff;
    border: 1.5px solid var(--fc-line);
    color: var(--fc-ink);
}

body.fc .btn-ghost:hover,
body.fc .btn-ghost:focus { border-color: var(--fc-navy); color: var(--fc-navy); }

body.fc .btn[disabled] {
    background: #c7c9d9;
    color: #fff;
    box-shadow: none;
    opacity: 1;
    cursor: not-allowed;
}

.fc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

@media (max-width: 575px) {
    .fc-actions .btn { width: 100%; }
}

/* ---------- Lista de dependentes (GridView) ---------- */
body.fc table.fc-kids {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0 10px;
    margin-top: -10px;
}

body.fc table.fc-kids th {
    padding: 0 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--fc-muted);
    text-align: left;
    background: none;
    border: 0;
}

body.fc table.fc-kids td {
    padding: 14px;
    background: #fff;
    border-top: 1.5px solid var(--fc-line);
    border-bottom: 1.5px solid var(--fc-line);
    vertical-align: middle;
    text-align: left;
    transition: background-color .15s ease, border-color .15s ease;
}

body.fc table.fc-kids td:first-child {
    width: 56px;
    text-align: center;
    border-left: 1.5px solid var(--fc-line);
    border-radius: 12px 0 0 12px;
}

body.fc table.fc-kids td:last-child {
    border-right: 1.5px solid var(--fc-line);
    border-radius: 0 12px 12px 0;
}

body.fc table.fc-kids tr.fc-kid { cursor: pointer; }

body.fc table.fc-kids tr.fc-kid:hover td { border-color: #c4c1e6; }

body.fc table.fc-kids tr.fc-kid.is-selected td {
    background: #f1f0fb;
    border-color: var(--fc-navy);
}

body.fc table.fc-kids input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: var(--fc-navy);
    cursor: pointer;
}

.fc-kid__name { font-weight: 800; font-size: 16px; }
.fc-kid__meta { color: var(--fc-muted); font-size: 14px; white-space: nowrap; }

@media (max-width: 575px) {
    body.fc table.fc-kids th.fc-col-matricula,
    body.fc table.fc-kids td.fc-col-matricula { display: none; }
}

/* ---------- Resumo / avisos ---------- */
.fc-summary {
    background: var(--fc-green-soft);
    border: 1.5px solid #b7e1c6;
    border-radius: 12px;
    padding: 16px 18px;
    margin: 18px 0;
}

.fc-summary__title {
    display: block;
    font-weight: 800;
    color: #065f2c;
    margin-bottom: 6px;
}

.fc-summary__list { font-weight: 600; color: #14532d; }

.fc-alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 16px 0;
    font-size: 15px;
}

.fc-alert i { margin-top: 3px; }
.fc-alert--info { background: #eef2ff; color: #3730a3; }
.fc-alert--warn { background: var(--fc-amber-soft); color: #92400e; }

/* ---------- Página de termos ---------- */
.fc-terms {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
}

.fc-terms li {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--fc-line);
}

.fc-terms li:last-child { border-bottom: 0; }

.fc-icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #eef0fb;
    color: var(--fc-navy);
    font-size: 17px;
}

.fc-icon--yellow { background: #fff6cc; color: #8a6d00; }
.fc-icon--green { background: var(--fc-green-soft); color: var(--fc-green); }

.fc-terms strong { display: block; }

.fc-price {
    font-weight: 600;
}

.fc-link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none !important;
    color: var(--fc-ink) !important;
}

.fc-link-card:hover .fc-link-card__arrow { transform: translateX(4px); }

.fc-link-card__arrow {
    margin-left: auto;
    color: var(--fc-navy);
    transition: transform .15s ease;
}

/* ---------- Confirmação ---------- */
.fc-status {
    text-align: center;
    padding: 8px 0 4px;
}

.fc-status__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    font-size: 34px;
    margin-bottom: 14px;
}

.fc-status--ok .fc-status__icon { background: var(--fc-green-soft); color: var(--fc-green); }
.fc-status--wait .fc-status__icon { background: var(--fc-amber-soft); color: var(--fc-amber); }

body.fc .fc-status__title { margin: 0 0 6px; font-size: 26px; font-weight: 800; }
.fc-status__text { margin: 0 auto; max-width: 520px; color: var(--fc-muted); }

.fc-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.fc-badge--ok { background: var(--fc-green-soft); color: #065f2c; }
.fc-badge--wait { background: var(--fc-amber-soft); color: #92400e; }

.fc-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
    margin: 0;
}

.fc-details > div { min-width: 0; }

.fc-details dt {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--fc-muted);
}

.fc-details dd {
    margin: 2px 0 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

@media (max-width: 575px) {
    .fc-details { grid-template-columns: 1fr; }
}

.fc-kid-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fc-kid-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--fc-line);
    font-weight: 700;
}

.fc-kid-list li:last-child { border-bottom: 0; }

.fc-kid-list .fc-avatar {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff6cc;
    color: #8a6d00;
}

.fc-kid-list .fc-kid__meta { margin-left: auto; }

/* ---------- Modal ---------- */
body.fc .modal-content {
    border: 0;
    border-radius: var(--fc-radius);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}

body.fc .modal-header { border-bottom: 0; padding: 22px 24px 4px; }
body.fc .modal-title { font-weight: 800; font-size: 20px; }
body.fc .modal-body { padding: 8px 24px 8px; font-size: 16px; }
body.fc .modal-footer { border-top: 0; padding: 12px 24px 22px; }

/* ---------- Carregando ---------- */
.fc-loading {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(244, 246, 251, .7);
    backdrop-filter: blur(2px);
}

.fc-loading.is-visible { display: flex; }

.fc-spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 5px solid #d9d7f0;
    border-top-color: var(--fc-navy);
    animation: fc-spin .8s linear infinite;
}

@keyframes fc-spin { to { transform: rotate(360deg); } }

/* ---------- Rodapé ---------- */
.fc-footer {
    text-align: center;
    color: var(--fc-muted);
    font-size: 14px;
    padding: 0 16px 32px;
}

/* Remove setas do input number (compatibilidade) */
body.fc input[type="number"]::-webkit-inner-spin-button,
body.fc input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
body.fc input[type="number"] { -moz-appearance: textfield; }

/* ---------- Impressão ---------- */
@media print {
    body.fc { background: #fff; }
    .fc-hero { padding: 16px; background: none; color: #000; }
    .fc-hero::before, .fc-hero::after { display: none; }
    body.fc .fc-hero__title, .fc-hero__sub, .fc-hero__eyebrow { color: #000; }
    .fc-main { margin: 0 auto; }
    .fc-card { box-shadow: none; border: 1px solid #ccc; }
    .fc-no-print { display: none !important; }
}

/* =====================================================================
   Formulários longos (anamnese) e telas administrativas
   ===================================================================== */
.fc-main--wide { max-width: 960px; }
.fc-hero--wide .fc-hero__inner { max-width: 960px; }

body.fc textarea.form-control { height: auto; min-height: 110px; resize: vertical; }

.fc-question {
    border: 1.5px solid var(--fc-line);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 14px;
}

.fc-question__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
}

.fc-question__title { margin: 0; font-weight: 800; font-size: 16px; }

.fc-question__body {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--fc-line);
}

.fc-question__body .fc-hint { margin: 0 0 10px; }

/* Sim / Não como botões segmentados (RadioButtonList RepeatLayout="Flow") */
.fc-choice {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fc-choice input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

body.fc .fc-choice label {
    margin: 0;
    padding: 9px 18px;
    border: 1.5px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all .15s ease;
}

body.fc .fc-choice label:hover { border-color: var(--fc-navy); }

body.fc .fc-choice input[type="radio"]:checked + label {
    background: var(--fc-navy);
    border-color: var(--fc-navy);
    color: #fff;
}

body.fc .fc-choice input[type="radio"]:focus-visible + label {
    box-shadow: 0 0 0 4px rgba(49, 39, 131, .2);
}

.fc-choice--block { display: flex; flex-direction: column; align-items: stretch; }
.fc-choice--block label { border-radius: 12px !important; }

/* Caixas de seleção com texto clicável */
.fc-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

body.fc label.fc-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 14px;
    border: 1.5px solid var(--fc-line);
    border-radius: 10px;
    background: #fff;
    font-weight: 600;
    cursor: pointer;
}

body.fc label.fc-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--fc-navy); }
body.fc label.fc-check:has(input:checked) { border-color: var(--fc-navy); background: #f1f0fb; }
body.fc label.fc-check:has(input:disabled) { opacity: .5; cursor: not-allowed; }

.fc-declaration {
    background: #f8f9fc;
    border-left: 4px solid var(--fc-navy);
    border-radius: 8px;
    padding: 14px 16px;
    margin: 12px 0 18px;
    font-size: 15px;
    color: #374151;
}

/* ---------- Admin ---------- */
.fc-admin-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.fc-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.fc-stat {
    background: var(--fc-card);
    border-radius: 14px;
    box-shadow: var(--fc-shadow);
    padding: 18px;
}

.fc-stat__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--fc-muted);
}

.fc-stat__value { font-size: 30px; font-weight: 800; line-height: 1.2; }

body.fc table.fc-table {
    width: 100%;
    border-collapse: collapse !important;
    font-size: 14px;
    background: #fff;
}

body.fc table.fc-table th {
    padding: 10px 12px;
    background: #f8f9fc;
    border-bottom: 1.5px solid var(--fc-line);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--fc-muted);
    text-align: left;
    white-space: nowrap;
}

body.fc table.fc-table th a { color: inherit; }

body.fc table.fc-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--fc-line);
    vertical-align: middle;
}

body.fc table.fc-table tr:hover td { background: #fafafe; }

.fc-table-wrap { overflow-x: auto; border-radius: 12px; border: 1.5px solid var(--fc-line); }

.fc-main--admin, .fc-hero--admin .fc-hero__inner { max-width: 1280px; }

body.fc .btn-danger { background: var(--fc-red); border: 0; color: #fff; }
body.fc .btn-danger:hover, body.fc .btn-danger:focus { background: #a61f1f; color: #fff; }

/* SweetAlert2 (avisos do Admin) no padrão visual */
body.fc .swal2-popup { border-radius: var(--fc-radius); font-family: inherit; }
body.fc .swal2-styled.swal2-confirm { background-color: var(--fc-navy) !important; border-radius: 12px; font-weight: 800; }

/* Visualização somente leitura (Admin > Anamnese) */
body.fc .fc-checks--readonly label.fc-check { opacity: .45; cursor: default; }
body.fc .fc-checks--readonly label.fc-check:has(input:checked) {
    opacity: 1;
    border-color: var(--fc-red);
    background: var(--fc-red-soft);
}
body.fc .fc-choice--readonly label { cursor: default; }
body.fc .fc-choice--readonly input:not(:checked) + label { opacity: .45; }

/* Esconde a área de resultados enquanto nenhuma busca foi feita */
.fc-results:not(:has(table)) { display: none; }
