html {
    box-sizing: border-box;
    font-size: 16px;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    background: #080509;
    background-image:
        radial-gradient(circle at top center, rgba(255, 85, 170, 0.12), transparent 24%),
        radial-gradient(circle at bottom left, rgba(255, 85, 170, 0.06), transparent 28%);
    color: #f5f1f7;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: #ff62ad;
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

img {
    max-width: 100%;
    border: 0;
}

h1,
h2,
h3 {
    margin-top: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: bold;
    line-height: 1.14;
}

h1 {
    margin-bottom: 16px;
    color: #ffffff;
    font-size: 3rem;
}

h2 {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 1.9rem;
}

h3 {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 1.28rem;
}

p {
    margin-top: 0;
}

.site-shell {
    min-height: 100vh;
}

.container {
    width: 92%;
    max-width: 1140px;
    margin: 0 auto;
}

.narrow {
    max-width: 760px;
}

.site-header {
    border-bottom: 1px solid #241c27;
    background: #0c090d;
}

.header-row {
    position: relative;
    padding: 20px 0;
    text-align: center;
}

.brand {
    display: inline-block;
    line-height: 0;
}

.brand:hover,
.brand:focus {
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 150px;
    max-width: 150px;
    height: auto;
}

.mobile-back {
    display: none;
}

.landing {
    padding: 32px 0 56px;
}

.hero-section,
.course-section {
    padding: 18px 0;
}

.hero-shell,
.course-row,
.course-hero-card,
.detail-card {
    background: #121013;
    border: 1px solid #2d2330;
    border-radius: 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.hero-shell {
    padding: 40px 28px;
}

.hero-center {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.hero-tag,
.course-meta-item,
.pill {
    display: inline-block;
    border: 1px solid #4d3142;
    border-radius: 999px;
}

.hero-tag {
    margin-bottom: 14px;
    padding: 8px 14px;
    color: #ff6cb3;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-subtitle,
.course-copy p,
.course-lead,
.topic-text,
.info-panel p,
.quick-list li,
.footer-row {
    color: #d2c7d4;
}

.hero-subtitle {
    max-width: 620px;
    margin: 0 auto;
    font-size: 1.06rem;
}

.course-list {
    margin-top: 2px;
}

.course-row {
    margin-bottom: 18px;
    padding: 24px;
}

.course-head {
    display: block;
    margin-bottom: 18px;
}

.course-head-copy {
    display: block;
}

.course-date,
.course-place,
.course-time {
    display: inline-block;
    white-space: nowrap;
}

.course-date {
    color: #ffffff;
    font-size: 1rem;
    font-weight: bold;
}

.course-inline-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 4px;
}

.course-place,
.course-time,
.course-inline-separator {
    display: inline-block;
    color: #ff99ca;
    font-size: 0.94rem;
}

.course-inline-separator {
    margin: 0 8px;
}

.course-title {
    margin-bottom: 10px;
}

.course-meta {
    margin-top: 18px;
}

.course-meta-item,
.pill {
    margin: 0 8px 8px 0;
    padding: 10px 14px;
    background: #171116;
    color: #ffe5f1;
    font-size: 0.9rem;
    font-weight: bold;
}

.course-cta {
    margin-top: 18px;
}

.course-cta .button {
    white-space: normal;
    line-height: 1.35;
}

.button {
    display: inline-block;
    padding: 14px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
}

.button:hover,
.button:focus {
    text-decoration: none;
}

.button-primary {
    background: linear-gradient(180deg, #ff72b9 0%, #ff4ea3 100%);
    border-color: #ff4ea3;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(255, 78, 163, 0.2);
}

.button-primary:hover,
.button-primary:focus {
    background: linear-gradient(180deg, #ff83c0 0%, #ff5caf 100%);
}

.course-cta .button,
.button-block {
    width: 100%;
}

.course-hero-card {
    padding: 32px 28px;
    margin-bottom: 20px;
}

.course-head-detail {
    max-width: none;
    margin-bottom: 22px;
}

.course-lead {
    max-width: 760px;
}

.pill-row {
    margin-top: 22px;
}

.detail-layout {
    margin-left: -10px;
    margin-right: -10px;
    overflow: hidden;
}

.detail-card {
    float: left;
    width: calc(60% - 20px);
    margin: 10px;
    padding: 28px;
}

.detail-sidebar {
    float: left;
    width: calc(40% - 20px);
    margin: 10px;
}

.detail-sidebar .detail-card {
    float: none;
    width: auto;
    margin: 0 0 20px;
}

.topic-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.topic-item {
    overflow: hidden;
    margin-bottom: 14px;
    padding: 16px 18px;
    border: 1px solid #2d2330;
    border-radius: 18px;
    background: #151116;
}

.topic-number {
    float: left;
    width: 44px;
    height: 44px;
    margin-right: 14px;
    border-radius: 14px;
    background: #231521;
    color: #ff79bc;
    font-size: 1rem;
    font-weight: bold;
    line-height: 44px;
    text-align: center;
}

.topic-text {
    display: block;
    overflow: hidden;
    padding-top: 3px;
}

.info-panel {
    margin-top: 22px;
    padding: 20px;
    border: 1px solid #3a2a38;
    border-radius: 20px;
    background: #171216;
}

.quick-list {
    margin: 0;
    padding-left: 18px;
}

.quick-list li {
    margin-bottom: 10px;
}

.form-panel {
    padding: 28px;
    scroll-margin-top: 24px;
}

.form-field {
    margin-bottom: 18px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    color: #ff9bcc;
    font-size: 0.88rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-field input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #3e2b39;
    border-radius: 16px;
    background: #0f0b10;
    color: #ffffff;
    font: inherit;
}

.form-field input:focus {
    border-color: #ff63ad;
    outline: 2px solid #2b1825;
    outline-offset: 0;
}

.field-error {
    margin: 8px 0 0;
    color: #ffc0dc;
    font-size: 0.92rem;
}

.alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: bold;
}

.alert-success {
    background: #132216;
    border: 1px solid #31593a;
    color: #c7ebcf;
}

.alert-warning {
    background: #24181c;
    border: 1px solid #70425a;
    color: #ffcade;
}

.alert-error {
    background: #291517;
    border: 1px solid #8e4747;
    color: #f7c4c4;
}

.empty-card {
    float: none;
    width: auto;
    text-align: center;
}

.thank-you-card {
    text-align: center;
}

.thank-you-warning {
    margin-top: 18px;
    text-align: left;
}

.thank-you-actions {
    margin-top: 24px;
}

.thank-you-link {
    display: inline-block;
    margin-left: 10px;
    padding: 14px 24px;
    border: 1px solid #4d3142;
    border-radius: 999px;
    color: #ff9fcc;
}

.thank-you-link:hover,
.thank-you-link:focus {
    background: #171116;
    text-decoration: none;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.mobile-course-cta {
    display: none;
}

.site-footer {
    margin-top: 12px;
    padding: 28px 0 40px;
    border-top: 1px solid #241c27;
    background: #0b080c;
}

.footer-row {
    text-align: center;
}

@media (max-width: 960px) {
    .detail-card,
    .detail-sidebar {
        float: none;
        width: auto;
    }

    .detail-sidebar {
        margin: 10px;
    }
}

@media (max-width: 720px) {
    h1 {
        font-size: 2.3rem;
    }

    h2 {
        font-size: 1.55rem;
    }

    .header-row {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 0;
        min-height: 0;
    }

    .mobile-back {
        display: inline-block;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 42px;
        height: 42px;
        border: 1px solid #3b2938;
        border-radius: 50%;
        background: #141014;
        color: #ff78bb;
        font-size: 1.25rem;
        line-height: 40px;
        text-align: center;
    }

    .mobile-back:hover,
    .mobile-back:focus {
        text-decoration: none;
    }

    .brand-logo {
        width: 120px;
        max-width: 120px;
    }

    .course-row,
    .course-hero-card,
    .detail-card,
    .form-panel,
    .hero-shell {
        padding: 22px;
    }

    .course-inline-separator {
        margin: 0 6px;
    }

    .landing-course-detail {
        padding-bottom: 124px;
    }

    .mobile-course-cta {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
        border-top: 1px solid #2d2330;
        background: rgba(8, 5, 9, 0.94);
        backdrop-filter: blur(14px);
    }
}

@media (max-width: 540px) {
    .container {
        width: 94%;
    }

    h1 {
        font-size: 2rem;
    }

    .button,
    .thank-you-link {
        width: 100%;
    }

    .course-inline-meta {
        flex-wrap: nowrap;
        overflow-x: auto;
        line-height: 1.4;
        scrollbar-width: none;
    }

    .course-inline-meta::-webkit-scrollbar {
        display: none;
    }

    .course-date,
    .course-place,
    .course-time {
        font-size: 0.84rem;
    }

    .thank-you-link {
        margin-left: 0;
        margin-top: 10px;
        text-align: center;
    }
}
