/* ── Pikellimi Anmeldung – Frontend Form Styles ── */
/* Palette: #0e4194 (main) | #ffffff (bg) | #000000 (text) */

/* ── Wrapper: respect theme content width ── */
.pkl-form-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    color: #000000;
}

/* ── Notice ── */
.pkl-notice {
    padding: 14px 16px;
    border-radius: 3px;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.5;
    font-size: .9rem;
}
.pkl-notice.is-success { border: 2px solid #0e4194; background: #eef3fc; color: #000000; }
.pkl-notice.is-error   { border: 2px solid #000000; background: #fff4f4; color: #000000; }

/* ── Sections ── */
.pkl-section {
    background: #ffffff;
    border: 1px solid #0e4194;
    border-radius: 3px;
    margin-bottom: 20px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}
.pkl-section-title {
    font-size: .88rem;
    font-weight: 700;
    color: #ffffff;
    background: #0e4194;
    margin: 0;
    padding: 10px 16px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.pkl-section-body {
    padding: 16px 16px 20px;
}

/* ── Grid ── */
.pkl-grid { display: grid; gap: 12px; width: 100%; }
.pkl-grid--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) {
    .pkl-grid--2 { grid-template-columns: 1fr; }
}

/* ── Fields ── */
.pkl-field { display: flex; flex-direction: column; gap: 4px; }
.pkl-field--full { grid-column: 1 / -1; }
.pkl-field--radio { margin-bottom: 14px; }

.pkl-label {
    font-size: .78rem;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1.4;
}
.pkl-field--required .pkl-label::after { content: ' *'; color: #0e4194; }

.pkl-input {
    padding: 8px 10px;
    border: 1.5px solid #0e4194;
    border-radius: 3px;
    font-size: .88rem;
    background: #ffffff;
    color: #000000;
    width: 100%;
    box-sizing: border-box;
    transition: box-shadow .15s;
    font-family: inherit;
}
.pkl-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(14,65,148,.2);
}
.pkl-input::placeholder { color: #999; }
.pkl-input--sm { font-size: .8rem; padding: 5px 7px; }

.pkl-textarea {
    resize: vertical;
    min-height: 90px;
    font-family: inherit;
}

/* ── Radio ── */
.pkl-radio-group { display: flex; gap: 20px; flex-wrap: wrap; padding: 5px 0 0; }
.pkl-radio {
    display: flex; align-items: center; gap: 6px;
    cursor: pointer; font-size: .9rem; font-weight: 600; color: #000000;
}
.pkl-radio input[type="radio"] { width: 15px; height: 15px; accent-color: #0e4194; cursor: pointer; }

/* ── Family table – desktop ── */
.pkl-table-wrap { overflow-x: auto; margin: 12px 0 0; }
.pkl-table-desktop { display: block; }

.pkl-family-table {
    width: 100%; border-collapse: collapse;
    font-size: .8rem; min-width: 640px;
}
.pkl-family-table th {
    background: #0e4194; color: #ffffff;
    padding: 8px 9px; text-align: left; font-weight: 700;
    font-size: .72rem; text-transform: uppercase; letter-spacing: .04em;
    white-space: nowrap; border: 1px solid #0e4194;
}
.pkl-family-table td {
    padding: 5px 7px; border: 1px solid #0e4194;
    background: #ffffff; vertical-align: middle;
}
.pkl-family-table tr:nth-child(even) td { background: #f4f7fd; }
.pkl-family-table tr:nth-child(even):hover td,
.pkl-family-table tr:hover td { background: #dce8f8; }

.pkl-th-action { width: 32px; }
.pkl-badge {
    display: inline-block; background: #0e4194; color: #ffffff;
    font-size: .68rem; font-weight: 700; padding: 2px 8px;
    border-radius: 2px; white-space: nowrap; text-transform: uppercase;
}
.pkl-badge--secondary { background: #3a65b0; }

/* Remove row button */
.pkl-btn-remove {
    background: none; border: 1.5px solid #0e4194; color: #0e4194;
    width: 24px; height: 24px; border-radius: 3px; cursor: pointer;
    font-size: .75rem; font-weight: 700; display: flex; align-items: center;
    justify-content: center; padding: 0; transition: background .12s, color .12s;
    line-height: 1;
}
.pkl-btn-remove:hover { background: #0e4194; color: #ffffff; }

/* Add member button */
.pkl-add-row-wrap { margin: 12px 0 4px; }
.pkl-btn-add {
    background: #ffffff; border: 2px solid #0e4194; color: #0e4194;
    padding: 7px 18px; border-radius: 3px; font-size: .82rem; font-weight: 700;
    cursor: pointer; text-transform: uppercase; letter-spacing: .04em;
    transition: background .12s, color .12s;
}
.pkl-btn-add:hover { background: #0e4194; color: #ffffff; }

/* ── Mobile family cards ── */
.pkl-family-cards { display: none; }

@media (max-width: 700px) {
    .pkl-table-desktop { display: none; }
    .pkl-family-cards  { display: block; }

    .pkl-family-card {
        border: 1px solid #0e4194; border-radius: 3px;
        margin-bottom: 12px; overflow: hidden;
    }
    .pkl-family-card-header {
        background: #0e4194; color: #ffffff;
        padding: 7px 12px; display: flex; justify-content: space-between; align-items: center;
        font-size: .78rem; font-weight: 700; text-transform: uppercase;
    }
    .pkl-family-card-body {
        padding: 12px; display: grid; gap: 9px;
        grid-template-columns: 1fr 1fr;
        background: #ffffff;
    }
    .pkl-family-card-body .pkl-field { grid-column: span 1; }
    .pkl-family-card-body .pkl-field--full-mobile { grid-column: 1 / -1; }
}

/* ── Fee table ── */
.pkl-fee-table-wrap { overflow-x: auto; }
.pkl-fee-table {
    width: 100%; border-collapse: collapse; min-width: 340px;
}
.pkl-fee-table th {
    background: #0e4194; color: #ffffff;
    padding: 8px 12px; text-align: left;
    font-size: .72rem; text-transform: uppercase; letter-spacing: .04em;
    border: 1px solid #0e4194;
}
.pkl-fee-table td {
    padding: 8px 12px; border: 1px solid #0e4194;
    color: #000000; background: #ffffff; font-size: .88rem;
}
.pkl-fee-table tr:nth-child(even) td { background: #f4f7fd; }
.pkl-fee-table tr.is-selected td { background: #0e4194 !important; color: #ffffff; font-weight: 700; }
.pkl-fee-radio-th { width: 36px; }
.pkl-fee-radio-td { width: 36px; text-align: center; }
.pkl-fee-radio-td input[type="radio"],
.pkl-fee-table input[type="radio"] { width: 15px; height: 15px; accent-color: #0e4194; cursor: pointer; }
.pkl-fee-yearly { text-align: center; font-weight: 700; vertical-align: middle; }

/* Mobile fee cards – shown only on small screens */
.pkl-fee-cards { display: none; }

@media (max-width: 500px) {
    .pkl-fee-table-wrap { display: none; }
    .pkl-fee-cards {
        display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px;
    }
    .pkl-fee-card-mobile { cursor: pointer; }
    .pkl-fee-card-mobile input { display: none; }
    .pkl-fee-card-inner {
        display: flex; flex-direction: column; align-items: center; text-align: center;
        padding: 12px 8px; border: 2px solid #0e4194; border-radius: 3px;
        background: #ffffff; transition: background .12s, color .12s;
    }
    .pkl-fee-card-mobile input:checked + .pkl-fee-card-inner {
        background: #0e4194; color: #ffffff;
    }
    .pkl-fee-age { font-size: .78rem; font-weight: 700; color: inherit; }
    .pkl-fee-price { font-size: 1.1rem; font-weight: 700; color: inherit; margin: 4px 0 2px; }
    .pkl-fee-yearly-mobile { font-size: .7rem; color: inherit; opacity: .85; }
}

.pkl-fee-info {
    background: #f4f7fd; border: 1px solid #0e4194; border-radius: 3px;
    padding: 9px 14px; font-size: .82rem; color: #000000; margin-top: 10px;
}

/* ── Payment ── */
.pkl-payment-group { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.pkl-payment-option { cursor: pointer; }
.pkl-payment-option input[type="radio"] { display: none; }
.pkl-payment-label {
    display: flex; align-items: center; padding: 9px 20px;
    border: 2px solid #0e4194; border-radius: 3px;
    font-weight: 700; font-size: .85rem; color: #0e4194; background: #ffffff;
    transition: background .12s, color .12s; cursor: pointer;
    text-transform: uppercase; letter-spacing: .04em;
}
.pkl-payment-option input:checked + .pkl-payment-label { background: #0e4194; color: #ffffff; }

/* ── Mandate / SEPA box ── */
.pkl-mandate-box {
    background: #f4f7fd; border: 1px solid #0e4194; border-radius: 3px;
    padding: 14px 16px; margin-bottom: 4px;
}
.pkl-mandate-text {
    font-size: .82rem; color: #000000; line-height: 1.65; margin: 0 0 12px;
    border-left: 3px solid #0e4194; padding-left: 12px;
}
.pkl-mandate-text:last-child { margin-bottom: 0; }
.pkl-sepa-title {
    font-size: .75rem; font-weight: 700; color: #0e4194;
    text-transform: uppercase; letter-spacing: .06em; margin: 12px 0 10px;
}

/* ── Hint ── */
.pkl-hint { font-size: .8rem; color: #000000; margin: 8px 0 0; line-height: 1.55; }

/* ── Checkbox ── */
.pkl-checkbox-wrap {
    display: flex; align-items: flex-start; gap: 10px;
    cursor: pointer; font-size: .88rem; line-height: 1.55;
    margin-bottom: 18px; color: #000000;
}
.pkl-checkbox-wrap input[type="checkbox"] {
    width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px;
    accent-color: #0e4194; cursor: pointer;
}
.pkl-checkbox-wrap a { color: #0e4194; text-decoration: underline; font-weight: 700; }

/* ── Submit – full width, blue ── */
.pkl-btn--submit {
    width: 100%;
    background: #0e4194;
    color: #ffffff;
    border: 2px solid #0e4194;
    padding: 14px 20px;
    border-radius: 3px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: .08em;
    transition: background .15s, color .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
}
.pkl-btn--submit:hover   { background: #0a3278; border-color: #0a3278; }
.pkl-btn--submit:active  { background: #082a66; }
.pkl-btn--submit:disabled { opacity: .55; cursor: not-allowed; }

@keyframes pkl-spin { to { transform: rotate(360deg); } }
.pkl-btn-spinner svg { animation: pkl-spin .7s linear infinite; }
