* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: manual;
}

:root {
    color-scheme: dark;
    --font-body: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-title: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --bg-deep: #160022;
    --bg-gradient-start: #3f0062;
    --bg-card: #200030;
    --accent-border: #9500e8;
    --accent-primary: #B8E9F3;
    --accent-secondary: #5B587A;
    --text-primary: #fff9f9;
    --text-muted: #c3d2e1;
    --shadow: rgba(0, 0, 0, 0.5);
    --neon-shadow: rgba(184, 233, 243, 0.3);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-deep);
    background-image: 
        radial-gradient(circle at 15% 50%, var(--bg-gradient-start) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 300" width="300" height="300"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.03"/></svg>');
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-primary);
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    width: 100%;
    text-align: center;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 60px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.logo svg {
    width: 3rem;
    height: 3rem;
    stroke: var(--accent-primary);
    stroke-width: 1.5;
}

.logo h1 {
    font-family: var(--font-title);
    letter-spacing: 0.02em;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-primary);
    text-shadow: 0 0 5px var(--neon-shadow), 0 0 10px var(--neon-shadow), 0 0 20px var(--accent-primary);
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

main {
    display: flex;
    flex-direction: column;
    gap: 56px;
    background: var(--bg-card);
    border-top: 2px solid var(--accent-border);
    border-bottom: 2px solid var(--accent-border);
    border-left: none;
    border-right: none;
    border-radius: 0;
    padding: 48px 40px;
    box-shadow: 0 8px 32px var(--shadow);
}

main section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.recruitment,
.broadcast-schedule,
.participate,
.links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.recruitment h2, .broadcast-schedule h2, .participate h2 {
    font-family: var(--font-title);
    letter-spacing: 0.015em;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 15px;
    text-shadow: 0 0 3px var(--neon-shadow), 0 0 8px var(--accent-primary);
}

.recruitment p, .broadcast-schedule p, .participate p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 20px auto;
}

.subtitle,
.recruitment p,
.broadcast-schedule p,
.participate p,
.role-line span,
.role-line small,
.info-content p {
    word-break: normal;
    overflow-wrap: normal;
    hyphens: manual;
}

.roles {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.roles p {
    margin-bottom: 0;
    color: var(--text-primary);
}

.role-line {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.role-line small {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-muted);
}

.roles span {
    color: var(--accent-primary);
    font-weight: 500;
}

.accessibility {
    font-style: italic;
    font-size: 0.9rem !important;
}

.dates {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.dates span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.dates svg {
    width: 1rem;
    height: 1rem;
    stroke: var(--accent-secondary);
}

.calendar-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.calendar-btn {
    font-family: var(--font-body);
    background: rgba(184, 233, 243, 0.18);
    border: 1px solid rgba(184, 233, 243, 0.65);
    color: #eaf9ff;
    padding: 9px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 0 0 1px rgba(184, 233, 243, 0.12), 0 8px 18px rgba(0, 0, 0, 0.25);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.calendar-btn:hover {
    background-color: var(--accent-primary);
    color: #1b2130;
    transform: translateY(-1px);
}

.links {
    margin-top: 8px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.card {
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 9px 18px;
    background: rgba(184, 233, 243, 0.18);
    border: 1px solid rgba(184, 233, 243, 0.65);
    border-radius: 6px;
    text-decoration: none;
    color: #eaf9ff;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 0 0 1px rgba(184, 233, 243, 0.12), 0 8px 18px rgba(0, 0, 0, 0.25);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.card:hover {
    background-color: var(--accent-primary);
    color: #1b2130;
    transform: translateY(-1px);
}

.card svg {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
    stroke-width: 2.2;
}

a:not(.calendar-btn):not(.card) {
    display: inline;
    max-width: 100%;
    color: var(--accent-primary);
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-size: 0 2px;
    background-position: 0 100%;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    transition: color 0.2s ease, text-shadow 0.2s ease, background-size 0.25s ease;
}

a:not(.calendar-btn):not(.card):hover {
    color: #e8f8ff;
    text-shadow: 0 0 8px rgba(184, 233, 243, 0.45);
    background-size: 100% 2px;
}

a:not(.calendar-btn):not(.card):focus-visible {
    background-size: 100% 2px;
}

.info-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--accent-border);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 999;
}

.info-button:hover {
    transform: scale(1.1);
    background: var(--accent-border);
    color: var(--text-primary);
}

.info-button svg {
    width: 20px;
    height: 20px;
}

.info-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.info-modal.hidden {
    display: none;
}

.info-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.info-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    border-top: 1px solid var(--accent-border);
    border-bottom: 1px solid var(--accent-border);
    box-shadow: 0 5px 25px var(--shadow);
    text-align: center;
    max-width: 400px;
    width: 100%;
    font-size: 0.9rem;
}

.info-content p {
    margin: 0;
    line-height: 1.6;
}

.info-content a {
    font-weight: 600;
}

.info-content a:hover {
    text-decoration: none;
}

#copyright {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    * {
        word-break: normal;
        overflow-wrap: normal;
        hyphens: manual;
    }

    body {
        padding: 20px 12px;
    }

    .container {
        max-width: 100%;
        align-items: stretch;
    }

    header {
        margin-bottom: 36px;
        text-align: left;
        align-items: flex-start;
    }

    .logo {
        justify-content: flex-start;
    }

    .logo h1 {
        font-size: 2.2rem;
    }

    .subtitle {
        text-align: left;
    }

    .logo,
    .logo h1,
    .subtitle,
    .recruitment h2,
    .broadcast-schedule h2,
    .participate h2,
    .calendar-links,
    .calendar-btn {
        align-self: center;
        text-align: center;
    }

    main {
        gap: 40px;
        padding: 28px 18px;
    }

    main section {
        align-items: flex-start;
        text-align: left;
        width: 100%;
    }

    .recruitment h2,
    .broadcast-schedule h2,
    .participate h2,
    .recruitment p,
    .broadcast-schedule p,
    .participate p {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }

    .recruitment p {
        max-width: 34ch;
        margin-bottom: 0;
    }

    .recruitment .roles {
        align-items: center;
        width: 100%;
        gap: 8px;
        margin-bottom: 0;
    }

    .recruitment .role-line {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        text-align: center;
    }

    .recruitment .role-line span {
        font-size: 1.05rem;
        font-weight: 600;
    }

    .recruitment .role-line small {
        font-size: 0.95rem;
    }

    .roles,
    .social-links,
    .calendar-links {
        align-items: stretch;
        width: 100%;
    }

    .role-line {
        justify-content: flex-start;
    }

    .dates {
        justify-content: flex-start;
        gap: 10px;
        width: 100%;
    }

    .dates span {
        width: 100%;
    }

    .calendar-links,
    .social-links {
        flex-direction: column;
        gap: 12px;
    }

    .calendar-btn,
    .card {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    header {
        margin-bottom: 28px;
    }

    .logo h1 {
        font-size: 1.9rem;
        letter-spacing: 0.01em;
    }

    .subtitle {
        font-size: 1.05rem;
    }

    main {
        gap: 30px;
        padding: 22px 14px;
    }

    .recruitment h2,
    .broadcast-schedule h2,
    .participate h2 {
        font-size: 1.35rem;
    }

    .recruitment .role-line span {
        font-size: 1rem;
    }

    .recruitment .role-line small {
        font-size: 0.9rem;
    }

    .recruitment p,
    .broadcast-schedule p,
    .participate p {
        font-size: 0.98rem;
        line-height: 1.55;
        margin-bottom: 14px;
    }

    .dates span,
    .calendar-btn,
    .card {
        font-size: 0.92rem;
    }

    .calendar-btn,
    .card {
        padding: 10px 12px;
    }
}

.contact-section {
    width: 100%;
}

.contact-section h2 {
    font-family: var(--font-title);
    letter-spacing: 0.015em;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 25px;
    text-shadow: 0 0 3px var(--neon-shadow), 0 0 8px var(--accent-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.form-group label small {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-group label small {
    font-weight: 400;
    color: var(--text-muted);
}

.required-star {
    color: #ef4444;
    font-weight: 800;
    margin-left: 2px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea,
.form-group input[type="file"] {
    width: 100%;
    padding: 11px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(184, 233, 243, 0.25);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.form-group input[type="file"] {
    padding: 10px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px dashed rgba(184, 233, 243, 0.35);
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 170px;
    max-height: 420px;
    max-width: 100%;
    overflow-x: hidden;
}

.form-group #senderMessage {
    border-radius: 8px 8px 0 0 !important;
}

.markdown-preview-live {
    border: 1px solid rgba(184, 233, 243, 0.25);
    background: rgba(255, 255, 255, 0.04);
    border-top: 0 !important;
    border-radius: 0 0 8px 8px;
    padding: 10px 12px;
}

.markdown-preview-title {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #c3d2e1;
    margin-bottom: 8px;
}

.markdown-preview-content {
    min-height: 46px;
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
    font-size: 0.98rem;
    line-height: 1.5;
    color: var(--text-primary);
    word-break: break-word;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding-right: 12px;
    box-sizing: border-box;
}

.markdown-preview-content > * {
    max-width: 100%;
}

.markdown-preview-content > *:first-child {
    margin-top: 0;
}

.markdown-preview-content > *:last-child {
    margin-bottom: 0;
}

.markdown-preview-content p,
.markdown-preview-content ul,
.markdown-preview-content ol,
.markdown-preview-content pre,
.markdown-preview-content blockquote,
.markdown-preview-content table,
.markdown-preview-content h1,
.markdown-preview-content h2,
.markdown-preview-content h3,
.markdown-preview-content h4,
.markdown-preview-content h5,
.markdown-preview-content h6 {
    margin: 0 0 0.65em;
}

.markdown-preview-content ul,
.markdown-preview-content ol {
    padding-left: 1.2rem;
}

.markdown-preview-content blockquote {
    border-left: 3px solid rgba(184, 233, 243, 0.45);
    padding-left: 0.8rem;
    color: #d7e8f7;
}

.markdown-preview-content code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.92em;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 0.1em 0.35em;
}

.markdown-preview-content pre {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
}

.markdown-preview-content pre code {
    background: transparent;
    padding: 0;
}

.markdown-preview-content table {
    display: block;
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
}

.markdown-preview-content th,
.markdown-preview-content td {
    border: 1px solid rgba(184, 233, 243, 0.3);
    padding: 0.35rem 0.45rem;
}

.markdown-preview-content hr {
    border: none;
    border-top: 1px solid rgba(184, 233, 243, 0.3);
    margin: 0.7em 0;
}

.markdown-preview-content em {
    font-style: italic;
    color: #d7eff5;
}

.markdown-preview-content strong {
    font-weight: 800;
    color: #f5fcff;
}

.markdown-preview-content a {
    color: var(--accent-primary);
    text-decoration: underline;
    overflow-wrap: anywhere;
}

.markdown-preview-content img,
.markdown-preview-content video,
.markdown-preview-content iframe,
.markdown-preview-content svg {
    max-width: 100%;
    height: auto;
}

.form-group textarea,
.markdown-preview-content,
.markdown-preview-content pre,
.markdown-preview-content table {
    scrollbar-width: thin;
    scrollbar-color: rgba(184, 233, 243, 0.7) rgba(255, 255, 255, 0.08);
}

.form-group textarea::-webkit-scrollbar,
.markdown-preview-content::-webkit-scrollbar,
.markdown-preview-content pre::-webkit-scrollbar,
.markdown-preview-content table::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.form-group textarea::-webkit-scrollbar-track,
.markdown-preview-content::-webkit-scrollbar-track,
.markdown-preview-content pre::-webkit-scrollbar-track,
.markdown-preview-content table::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.07);
    border-radius: 999px;
}

.form-group textarea::-webkit-scrollbar-thumb,
.markdown-preview-content::-webkit-scrollbar-thumb,
.markdown-preview-content pre::-webkit-scrollbar-thumb,
.markdown-preview-content table::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(184, 233, 243, 0.85), rgba(116, 161, 171, 0.9));
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.form-group textarea::-webkit-scrollbar-thumb:hover,
.markdown-preview-content::-webkit-scrollbar-thumb:hover,
.markdown-preview-content pre::-webkit-scrollbar-thumb:hover,
.markdown-preview-content table::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(202, 243, 252, 0.95), rgba(134, 183, 194, 0.95));
}

.markdown-note {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.4;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--neon-shadow);
    background-color: rgba(255, 255, 255, 0.07);
}

.form-group input[type="file"]:focus {
    border-color: rgba(184, 233, 243, 0.6);
    box-shadow: 0 0 0 3px rgba(184, 233, 243, 0.15);
}

.form-group input.is-invalid,
.form-group textarea.is-invalid,
.form-group input.is-invalid:focus,
.form-group textarea.is-invalid:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
    background-color: rgba(239, 68, 68, 0.08);
}


.field-error {
    display: none;
    margin-top: 6px;
    color: #ff6b7a;
    font-size: 0.88rem;
    line-height: 1.35;
    font-weight: 500;
}

.field-error.is-visible {
    display: block;
}

.checkbox-group {
    margin-top: 8px;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
    cursor: pointer;
}

.checkbox-group label {
    font-weight: 400;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1.5;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 28px;
    background-color: var(--accent-primary);
    color: #1b2130;
    border: none;
    border-radius: 6px;
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 8px rgba(184, 233, 243, 0.15);
}

.submit-btn:hover {
    background-color: #92d5e3;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(184, 233, 243, 0.25);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn svg {
    width: 1.2rem;
    height: 1.2rem;
}

.honeypot-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.alert-success,
.alert-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 600;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.alert-hidden {
    opacity: 0;
    transform: translateY(-6px);
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid #22c55e;
    color: #4ade80;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #f87171;
}

.alert-success svg,
.alert-error svg {
    width: 1.2rem;
    height: 1.2rem;
}

@media (max-width: 768px) {
    .contact-section {
        align-items: stretch;
        text-align: left;
    }

    .contact-section h2 {
        align-self: center;
        text-align: center;
    }

    .contact-form {
        max-width: 100%;
    }

    .submit-btn {
        width: 100%;
    }

    .alert-success,
    .alert-error {
        justify-content: flex-start;
        text-align: left;
    }
}
