/* ===== Newsletter registrace — Fajn Brigády ===== */
/* Brand: #ea580c (oranžová) */

.newsletter,
.newsletter * {
    box-sizing: border-box;
}

.newsletter {
    --brand: #ea580c;
    --brand-dark: #c2410c;
    --brand-light: #fff7ed;
    --brand-accent: #fb923c;
    --ink: #0f172a;
    --ink-soft: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --line-soft: #f1f5f9;
    --bg: #f8fafc;
    --white: #ffffff;
    --radius: 16px;
    --radius-lg: 24px;

    position: relative;
    padding: 64px 20px 96px;
    font-family: 'Rubik', system-ui, -apple-system, Segoe UI, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(1200px 500px at 50% -200px, #ffedd5 0%, rgba(255, 237, 213, 0) 70%),
        linear-gradient(180deg, #fafaf9 0%, #f8fafc 100%);
    min-height: 100vh;
}

.newsletter__inner {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 56px 64px 64px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 8px 24px rgba(15, 23, 42, 0.06),
        0 24px 48px -12px rgba(234, 88, 12, 0.08);
    border: 1px solid var(--line-soft);
    overflow: hidden;
}

.newsletter__inner::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, #ea580c 0%, #f97316 50%, #fb923c 100%);
}

/* ===== Head ===== */
.newsletter__head {
    text-align: center;
    margin-bottom: 44px;
}

.newsletter__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand);
    background: var(--brand-light);
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.newsletter__badge::before {
    content: "✉";
    font-size: 1rem;
}

.newsletter__title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    line-height: 1.15;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--ink);
    letter-spacing: -0.025em;
}

.newsletter__subtitle {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--muted);
    margin: 0 auto;
    max-width: 540px;
}

/* ===== Form ===== */
.newsletter__form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.newsletter__group {
    border: 0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.newsletter__group-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand);
    margin: 8px 0 -6px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.newsletter__group-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--line) 0%, transparent 100%);
}

.newsletter__row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.newsletter__row--two {
    grid-template-columns: repeat(2, 1fr);
}

.newsletter__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.newsletter__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    gap: 4px;
}

.newsletter__required {
    color: var(--brand);
    font-weight: 700;
}

/* ===== Inputs / Selects ===== */
.newsletter__input,
.newsletter__select {
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
    padding: 15px 18px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background-color: var(--white);
    color: var(--ink);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
    -webkit-appearance: none;
    appearance: none;
    min-height: 54px;
}

.newsletter__input::placeholder {
    color: #94a3b8;
}

.newsletter__input:hover,
.newsletter__select:hover {
    border-color: #cbd5e1;
    background-color: #fafafa;
}

.newsletter__input:focus,
.newsletter__select:focus {
    outline: none;
    border-color: var(--brand);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.15);
}

/* Custom select arrow */
.newsletter__select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23ea580c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 12px 8px;
    padding-right: 46px;
    cursor: pointer;
}

.newsletter__select--multi {
    background-image: none;
    padding: 10px 12px;
    min-height: 180px;
    cursor: default;
}

.newsletter__select--multi option {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 2px;
    font-size: 0.9375rem;
}

.newsletter__select--multi option:checked {
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand-accent) 100%) !important;
    color: white;
    font-weight: 600;
}

.newsletter__hint {
    font-size: 0.8125rem;
    color: var(--muted);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.newsletter__hint::before {
    content: "ⓘ";
    color: var(--brand);
}

/* ===== Zahraničí panel ===== */
.newsletter__field--zahranici {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1.5px dashed var(--brand-accent);
    border-radius: 14px;
    padding: 20px 22px;
    animation: nl-fade-in 0.35s ease;
}

@keyframes nl-fade-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.newsletter__field--zahranici .newsletter__label {
    color: var(--brand-dark);
}

/* ===== Checkboxy ===== */
.newsletter__checks {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
    padding: 24px 26px;
    background: var(--bg);
    border-radius: 16px;
    border: 1px solid var(--line);
}

.newsletter__check {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--ink-soft);
    cursor: pointer;
    user-select: none;
}

.newsletter__check input[type="checkbox"] {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    accent-color: var(--brand);
    cursor: pointer;
}

.newsletter__check a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}

.newsletter__check a:hover {
    color: var(--brand-dark);
}

/* ===== Submit ===== */
.newsletter__actions {
    margin-top: 16px;
}

.newsletter__submit {
    width: 100%;
    font-family: inherit;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--white);
    background: linear-gradient(135deg, #ea580c 0%, #f97316 60%, #fb923c 100%);
    background-size: 200% 100%;
    background-position: 0% 50%;
    border: none;
    border-radius: 14px;
    padding: 20px 28px;
    cursor: pointer;
    min-height: 62px;
    box-shadow:
        0 4px 14px rgba(234, 88, 12, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.18s ease, box-shadow 0.2s ease, background-position 0.4s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.newsletter__submit::after {
    content: "→";
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.newsletter__submit:hover {
    background-position: 100% 50%;
    box-shadow:
        0 8px 24px rgba(234, 88, 12, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.newsletter__submit:hover::after {
    transform: translateX(4px);
}

.newsletter__submit:active {
    transform: translateY(0);
}

.newsletter__submit:focus-visible {
    outline: 3px solid #fdba74;
    outline-offset: 3px;
}

.newsletter__footnote {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--muted);
    margin: 14px 0 0;
}

/* ===== Responzivita ===== */
@media (max-width: 720px) {
    .newsletter {
        padding: 32px 14px 64px;
    }
    .newsletter__inner {
        padding: 36px 22px 40px;
        border-radius: 18px;
    }
    .newsletter__head {
        margin-bottom: 32px;
    }
    .newsletter__row,
    .newsletter__row--two {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .newsletter__checks {
        padding: 20px;
    }
}
