/**
 * NTCG Serve — Frontend Styles
 * Design language aligned with ntcg.org.uk
 * Fonts: Figtree (body), League Spartan (headings)
 * Brand: #0facb2 teal, #30373b dark, #f7c70c gold, #d42769 pink
 */

/* ========================================
   Reset & Base
   ======================================== */

.serve-home,
.serve-register {
    font-family: "Figtree", sans-serif;
    color: #30373b;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.serve-home *,
.serve-register * {
    box-sizing: border-box;
}

/* ========================================
   Topbar
   ======================================== */

.serve-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(48, 55, 59, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.serve-topbar--light {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e5e7eb;
}

.serve-topbar--light .serve-topbar__brand {
    color: #30373b;
}

.serve-topbar--light .serve-topbar__brand-sub {
    color: #0facb2;
}

.serve-topbar--light .serve-topbar__link {
    color: #4b5563;
}

.serve-topbar--light .serve-topbar__link:hover,
.serve-topbar--light .serve-topbar__link--active {
    color: #0facb2;
}

.serve-topbar__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.serve-topbar__brand {
    font-family: "League Spartan", "Figtree", sans-serif;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-decoration: none;
}

.serve-topbar__brand-sub {
    color: #0facb2;
}

.serve-topbar__nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.serve-topbar__link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.18s ease;
}

.serve-topbar__link:hover,
.serve-topbar__link--active {
    color: #ffffff;
}

.serve-topbar__link--external::after {
    content: " \2197";
    font-size: 10px;
}

.serve-topbar__back {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-family: "Figtree", sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 0;
    transition: opacity 0.15s ease;
}

.serve-topbar__back:hover {
    opacity: 0.7;
}

.serve-topbar--light .serve-topbar__back {
    color: #30373b;
}

/* ========================================
   Hero
   ======================================== */

.serve-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 24px 100px;
    background: #30373b;
    overflow: hidden;
}

.serve-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(15, 172, 178, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(212, 221, 68, 0.1) 0%, transparent 50%),
        linear-gradient(160deg, #30373b 0%, #1c2024 100%);
    z-index: 1;
}

.serve-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
    text-align: center;
}

.serve-hero__eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #0facb2;
    margin-bottom: 20px;
}

.serve-hero__title {
    font-family: "League Spartan", "Figtree", sans-serif;
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.08;
    margin: 0 0 20px;
}

.serve-hero__subtitle {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.serve-hero__actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Buttons (ntcg.org.uk style)
   ======================================== */

.serve-btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 999px;
    font-family: "Figtree", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.18s ease;
}

.serve-btn--primary {
    background: #0facb2;
    color: #ffffff;
    border-color: #0facb2;
}

.serve-btn--primary:hover {
    background: #0d9299;
    border-color: #0d9299;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 172, 178, 0.3);
    color: #ffffff;
}

.serve-btn--outline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
}

.serve-btn--outline:hover {
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
}

.serve-btn--cta {
    background: #f7c70c;
    color: #30373b;
    border-color: #f7c70c;
    padding: 16px 36px;
    font-size: 14px;
}

.serve-btn--cta:hover {
    background: #e5b800;
    border-color: #e5b800;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 199, 12, 0.3);
    color: #30373b;
}

.serve-btn--large {
    padding: 16px 36px;
    font-size: 14px;
}

/* ========================================
   Section Layout
   ======================================== */

.serve-section {
    padding: 84px 24px;
    background: #ffffff;
}

.serve-section--light {
    background: #f3f4f6;
}

.serve-section__inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.serve-section__eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #0facb2;
    margin-bottom: 14px;
}

.serve-section__title {
    font-family: "League Spartan", "Figtree", sans-serif;
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    color: #30373b;
    margin: 0 0 14px;
    line-height: 1.15;
}

.serve-section__subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0 auto 52px;
    max-width: 560px;
    line-height: 1.65;
}

/* ========================================
   Event Cards
   ======================================== */

.serve-event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    text-align: left;
}

.serve-event-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px 24px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.serve-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(26, 33, 42, 0.08);
}

.serve-event-card__dept {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #0facb2;
    margin-bottom: 8px;
}

.serve-event-card__name {
    font-family: "League Spartan", "Figtree", sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #30373b;
    margin: 0 0 10px;
}

.serve-event-card__desc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 16px;
}

.serve-event-card__link {
    font-size: 13px;
    font-weight: 700;
    color: #0facb2;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: color 0.15s ease;
}

.serve-event-card__link:hover {
    color: #0d8f94;
}

/* ========================================
   Steps / How It Works
   ======================================== */

.serve-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 880px;
    margin: 0 auto;
}

.serve-step {
    flex: 1;
    text-align: center;
    padding: 0 24px;
}

.serve-step__number {
    width: 48px;
    height: 48px;
    background: #0facb2;
    color: #ffffff;
    font-family: "League Spartan", "Figtree", sans-serif;
    font-size: 20px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.serve-step__title {
    font-family: "League Spartan", "Figtree", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #30373b;
    margin: 0 0 8px;
}

.serve-step__text {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.65;
    margin: 0;
}

.serve-step__divider {
    width: 1px;
    min-height: 120px;
    background: #e5e7eb;
    flex-shrink: 0;
    margin-top: 24px;
}

/* ========================================
   CTA
   ======================================== */

.serve-cta {
    padding: 84px 24px;
    background: #30373b;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.serve-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 120%, rgba(15, 172, 178, 0.12) 0%, transparent 60%);
}

.serve-cta__inner {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}

.serve-cta__title {
    font-family: "League Spartan", "Figtree", sans-serif;
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 14px;
    line-height: 1.15;
}

.serve-cta__text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.65;
    margin: 0 0 32px;
}

/* ========================================
   Footer
   ======================================== */

.serve-footer {
    background: #1c2024;
    padding: 32px 24px;
}

.serve-footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.serve-footer__brand {
    font-family: "League Spartan", "Figtree", sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.5);
}

.serve-footer__copy {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
}

.serve-footer__link {
    font-size: 13px;
    font-weight: 600;
    color: #0facb2;
    text-decoration: none;
    transition: color 0.15s ease;
}

.serve-footer__link:hover {
    color: #0d9299;
}

/* ========================================
   Registration Page
   ======================================== */

.serve-register {
    background: #f3f4f6;
    min-height: 100vh;
}

.serve-register__section {
    padding: 100px 24px 80px;
}

.serve-register__inner {
    max-width: 700px;
    margin: 0 auto;
}

.serve-register__title {
    font-family: "League Spartan", "Figtree", sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #30373b;
    margin: 0 0 12px;
}

.serve-register__intro {
    color: #6b7280;
    font-size: 15px;
    margin: 0 0 32px;
    line-height: 1.65;
}

.serve-register__form-wrap {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

/* ========================================
   Native Form Styles
   ======================================== */

.serve-form__fieldset {
    border: none;
    padding: 0;
    margin: 0 0 32px;
}

.serve-form__legend {
    font-family: "League Spartan", "Figtree", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #30373b;
    margin: 0 0 20px;
    padding: 0 0 10px;
    border-bottom: 2px solid #e5e7eb;
    width: 100%;
}

.serve-form__field {
    margin-bottom: 20px;
}

.serve-form__label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #30373b;
    margin-bottom: 6px;
}

.serve-form__label .required {
    color: #ef4444;
}

.serve-form__hint {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 16px;
}

.serve-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.serve-form input[type="text"],
.serve-form input[type="email"],
.serve-form input[type="tel"],
.serve-form input[type="date"],
.serve-form select,
.serve-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-family: "Figtree", sans-serif;
    font-size: 14px;
    color: #30373b;
    background: #ffffff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.serve-form input:focus,
.serve-form select:focus,
.serve-form textarea:focus {
    outline: none;
    border-color: #0facb2;
    box-shadow: 0 0 0 3px rgba(15, 172, 178, 0.12);
}

.serve-form textarea {
    resize: vertical;
    min-height: 80px;
}

.serve-form__radio-group,
.serve-form__checkbox-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.serve-form__checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px;
}

.serve-form__radio,
.serve-form__checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #30373b;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1.5px solid #e5e7eb;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.serve-form__radio:hover,
.serve-form__checkbox:hover {
    background: rgba(15, 172, 178, 0.04);
    border-color: #d1d5db;
}

.serve-form__radio input,
.serve-form__checkbox input {
    accent-color: #0facb2;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.serve-form__submit {
    text-align: center;
    padding-top: 16px;
}

/* ========================================
   Form Messages
   ======================================== */

.serve-register__errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    color: #991b1b;
}

.serve-register__errors strong {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

.serve-register__errors ul {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
}

.serve-register__errors li {
    margin-bottom: 4px;
}

.serve-register__success {
    text-align: center;
    padding: 100px 24px 80px;
}

.serve-register__success-icon {
    width: 64px;
    height: 64px;
    background: #0facb2;
    color: #ffffff;
    font-size: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.serve-register__success h1 {
    font-family: "League Spartan", "Figtree", sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #30373b;
    margin: 0 0 12px;
}

.serve-register__success p {
    color: #6b7280;
    font-size: 16px;
    margin: 0 0 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 860px) {
    .serve-topbar__nav {
        display: none;
    }

    .serve-topbar__brand {
        display: none;
    }

    .serve-topbar__back {
        display: flex;
    }

    .serve-hero {
        min-height: 70vh;
        padding: 120px 20px 80px;
    }

    .serve-hero__title {
        font-size: 36px;
    }

    .serve-event-grid {
        grid-template-columns: 1fr 1fr;
    }

    .serve-steps {
        flex-direction: column;
        gap: 32px;
        align-items: center;
    }

    .serve-step__divider {
        width: 40px;
        min-height: 0;
        height: 1px;
    }

    .serve-register__form-wrap {
        padding: 24px 20px;
    }

    .serve-form__row {
        grid-template-columns: 1fr;
    }

    .serve-form__checkbox-grid {
        grid-template-columns: 1fr;
    }

    .serve-footer__inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .serve-hero {
        padding: 100px 16px 60px;
        min-height: auto;
    }

    .serve-hero__title {
        font-size: 30px;
    }

    .serve-hero__subtitle {
        font-size: 15px;
    }

    .serve-hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .serve-section {
        padding: 60px 16px;
    }

    .serve-section__title {
        font-size: 26px;
    }

    .serve-event-grid {
        grid-template-columns: 1fr;
    }

    .serve-cta {
        padding: 60px 16px;
    }

    .serve-cta__title {
        font-size: 26px;
    }

    .serve-register__title {
        font-size: 28px;
    }

    .serve-form__fieldset {
        margin-bottom: 24px;
    }
}
