:root {
    --bg: #0b4b67;
    --bg2: #08384d;
    --card: rgba(255, 255, 255, .08);
    --text: #f3f7fb;
    --muted: rgba(243, 247, 251, .82);
    --accent: #ffb81c;
    --accent2: #9fe7ff;
    --radius: 16px;
    --max: 980px;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--text);
    background: radial-gradient(1200px 600px at 20% 10%, rgba(159, 231, 255, .18), transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(246, 196, 83, .12), transparent 55%),
    linear-gradient(180deg, rgba(11, 75, 103, .78), rgba(8, 56, 77, .84)),
    url('../images/background.jpg');
    background-size: auto, auto, auto, cover;
    background-position: center, center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
    background-attachment: scroll, scroll, scroll, fixed;
    min-height: 100vh;
}

a {
    color: var(--accent2);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 32px 18px 48px;
}

header {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 22px 22px 18px;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}

h1 {
    margin: 0 0 6px;
    font-size: clamp(24px, 3.2vw, 40px);
    letter-spacing: .02em;
}

.sub {
    margin: 0;
    font-style: italic;
    color: var(--muted);
    font-size: 24px;
}

.heroTitle {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.heroText {
    display: flex;
    align-items: center;
    gap: 12px;
}

.heroLogo {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .25));
    opacity: .9;
}

.heroIcons {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-top: 2px;
    flex: 0 0 auto;
}

.heroIcons img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .35));
    opacity: .95;
}

@media (max-width: 520px) {
    .heroTitle {
        flex-direction: column;
    }

    .heroIcons {
        padding-top: 0;
    }

    .heroIcons img {
        width: 44px;
        height: 44px;
    }

    .heroLogo {
        height: 38px;
    }
}

.blockHeading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.blockIllustration {
    position: absolute;
    right: 18px;
    top: 0;
    width: 400px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .35));
    opacity: .50; /* increased transparency */
}

.card {
    position: relative;
}

.block2 {
    position: relative;
}

/* create right-side content padding so text does not overlap the illustration */
.block2 {
    padding-right: 420px;
}

@media (max-width: 1024px) {
    .blockIllustration {
        width: 320px;
        right: 16px;
        opacity: .7;
    }

    .block2 {
        padding-right: 340px;
    }
}

@media (max-width: 760px) {
    .blockIllustration {
        display: none;
    }

    .block2 {
        padding-right: 0;
    }
}

@media (max-width: 860px) {
    .blockIllustration {
        width: 280px;
    }
}

@media (max-width: 520px) {
    .blockHeading {
        align-items: flex-start;
    }

    .blockIllustration {
        width: 200px;
        height: auto;
        float: none;
        margin: 8px 0;
    }
}

.meta {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr;
    color: var(--muted);
    font-size: 15px;
}

.meta p {
    font-size: 15px;
}

.meta b {
    color: var(--accent);
    font-weight: 700;
}

/* Old two-column layout (kept for reference/backward compat) */
.grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 18px;
    align-items: start;
}

/* New single-column layout required by homepage */
.stack {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (max-width: 860px) {
    header {
        flex-direction: column;
    }

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

.card {
    background: rgba(11, 75, 103, 0.35);
    border-radius: var(--radius);
    border: 1px solid rgba(159, 231, 255, 0.15);
    padding: 24px 24px 22px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card.loginCard {
    background: rgba(8, 56, 77, 0.95);
    border: 2px solid rgba(159, 231, 255, 0.25);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

h2 {
    margin: 0 0 10px;
    font-size: 18px;
    letter-spacing: .01em;
    color: var(--accent);
}

h3 {
    margin: 16px 0 8px;
    font-size: 16px;
    color: var(--accent2);
}

p {
    margin: 8px 0;
    color: var(--muted);
    line-height: 1.5;
    font-size: 15px;
}

.loginCard a {
    color: #00e5cc;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.loginCard a::before {
    content: "📋️";
    font-size: 18px;
    display: inline-block;
}

.loginCard a:hover {
    color: #5ffff0;
    text-decoration: none;
}

.card a[href^="mailto"] {
    color: #00e5cc;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.card a[href^="mailto"]:hover {
    color: #5ffff0;
    text-decoration: none;
}

.card a[href*="maps.app.goo.gl"]::before {
    content: "📍 ";
    font-size: 16px;
    display: inline-block;
}

.card a[href*="maps.app.goo.gl"] {
    color: #00e5cc;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.card a[href*="maps.app.goo.gl"]:hover {
    color: #5ffff0;
    text-decoration: none;
}

/* Maps links in header */
.meta a[href*="maps.app.goo.gl"]::before {
    content: "📍 ";
    font-size: 16px;
    display: inline-block;
}

.meta a[href*="maps.app.goo.gl"] {
    color: #00e5cc;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.meta a[href*="maps.app.goo.gl"]:hover {
    color: #5ffff0;
    text-decoration: none;
}

ul {
    margin: 6px 0 0 20px;
    color: var(--muted);
    line-height: 1.55;
}

.pill {
    display: inline-block;
    background: rgba(246, 196, 83, .16);
    border: 1px solid rgba(246, 196, 83, .35);
    color: var(--text);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 650;
    margin: 10px 0 0;
}

footer {
    margin-top: 18px;
    text-align: center;
    color: rgba(243, 247, 251, .7);
    font-size: 14px;
}

.org {
    margin-top: 10px;
    font-size: 14px;
    color: rgba(243, 247, 251, .75);
}

/* small optional niceties */
.card a {
    word-break: break-word;
}

/* Registration page styles */
.registrationTypes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 14px;
}

.regType {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
}

.regType h3 {
    margin-top: 0;
    color: var(--accent);
}

.regType ul {
    margin: 6px 0 0 18px;
}

.regForm {
    margin-top: 16px;
}

.formSection {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.formSection:last-of-type {
    border-bottom: none;
}

.formSection h3 {
    margin: 0 0 14px;
    color: var(--accent2);
    font-size: 17px;
}

.formGroup {
    margin-bottom: 14px;
    position: relative;
}

.formGroup label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text);
    font-size: 15px;
}

.formGroup input[type="text"],
.formGroup input[type="email"],
.formGroup input[type="tel"],
.formGroup select,
.formGroup textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.formGroup select option {
    background: #0b4b67;
    color: var(--text);
    padding: 8px;
}

.formGroup input:focus,
.formGroup select:focus,
.formGroup textarea:focus {
    outline: none;
    border-color: var(--accent2);
    background: rgba(255, 255, 255, .12);
}

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

/* Validation error styles */
.formGroup input.has-error,
.formGroup select.has-error,
.formGroup textarea.has-error {
    border-color: #ff4444;
    background: rgba(255, 68, 68, .08);
}

.error-message {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 4px;
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message {
    background: rgba(76, 175, 80, .15);
    border: 1px solid rgba(76, 175, 80, .4);
    color: #81c784;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    animation: slideDown 0.4s ease;
}

.error-box {
    background: rgba(255, 68, 68, .12);
    border: 1px solid rgba(255, 68, 68, .4);
    color: #ff6b6b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    animation: slideDown 0.4s ease;
}

.error-box strong {
    display: block;
    margin-bottom: 8px;
    color: #ff4444;
}

.error-box ul {
    margin: 0;
    padding-left: 20px;
}

.error-box li {
    margin-bottom: 4px;
}

.radioGroup label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 400;
    cursor: pointer;
}

.radioGroup input[type="radio"],
.radioGroup input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.formActions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.formActions .btn {
    margin: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #0b1824;
    background: linear-gradient(135deg, #ffb81c, #ffd166);
    box-shadow: 0 10px 24px rgba(255, 184, 28, 0.35);
    transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(255, 184, 28, 0.45);
    filter: brightness(1.02);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(255, 184, 28, 0.35);
}

.btn.secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.btn.secondary:hover {
    border-color: rgba(255, 255, 255, 0.28);
    filter: brightness(1.05);
}

@media (max-width: 520px) {
    .registrationTypes {
        grid-template-columns: 1fr;
    }

    .formActions {
        flex-direction: column;
    }

    .formActions .btn {
        width: 100%;
        text-align: center;
    }
}

.siteHeaderLink {
    display: block;
    text-decoration: none;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.siteHeaderLink:hover {
    opacity: 0.8;
}

.siteHeader {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 14px;
}

.friLogo {
    height: 120px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .25));
    opacity: .9;
}

@media (max-width: 520px) {
    .friLogo {
        height: 40px;
    }
}

.infoCard {
    position: relative;
}

.infoIllustration {
    position: absolute;
    right: 16px;
    top: 50px;
    width: 300px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .3));
    opacity: .8;
    transform: scaleX(-1);
}

.infoCard {
    padding-right: 320px;
}

@media (max-width: 900px) {
    .infoIllustration {
        width: 220px;
    }

    .infoCard {
        padding-right: 240px;
    }
}

@media (max-width: 760px) {
    .infoIllustration {
        display: none;
    }

    .infoCard {
        padding-right: 0;
    }
}
