/* ============================================================
   custom-SGSecure.css
   SGSecure 2026 - 10th Anniversary Event Registration Form
   Plain CSS (no var()) to remain .NET-friendly.
   ============================================================ */

/* ---------- Fonts ---------- */
/* Body / labels = Arial (supplied in /fonts) */
@font-face {
    font-family: 'ArialLocal';
    src: url('../fonts/Arial.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ArialLocal';
    src: url('../fonts/Arial Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Heading display font = Ogg-Bold (commercial, Sharp Type).
   Drop the licensed file into /fonts as "Ogg-Bold.ttf" (or .woff2)
   and this rule will pick it up automatically. Until then it
   falls back to the serif stack defined on .display-heading. */
@font-face {
    font-family: 'Ogg';
    src: url('../fonts/Ogg Ogg Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ---------- Base ---------- */
html, body {
    min-height: 100%;
}

body {
    font-family: 'ArialLocal', Arial, Helvetica, sans-serif;
    color: #ffffff;
    margin: 0;
    /* Blue sky gradient sampled from the mockup: deeper blue at the
       top fading to a pale sky-blue toward the bottom. */
    background: #0077bc;
    background: linear-gradient(180deg, #0077bc 0%, #0d83c6 25%, #3a9dd6 55%, #79bce6 80%, #b3d9f0 100%);
    background-attachment: fixed;
}

/* ---------- Header / Cloud banner ---------- */
.site-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 28px 0 20px;
    min-height: 360px;
}

/* Keeps logo + title + meta above the cloud layer */
.banner-content {
    position: relative;
    z-index: 5;
}

.site-logo {
    display: block;
    margin: 0 auto;
    width: 370px;
    max-width: 80%;
    height: auto;
}

/* Cloud layer */
.cloud-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Wrapper handles the one-time drift-in (X axis + opacity).
   The inner <img> handles the continuous float (Y axis).
   Splitting across two elements avoids the two animations
   fighting over the same transform property. */
.cloud {
    position: absolute;
    opacity: 0;
    will-change: transform, opacity;
}

.cloud img {
    display: block;
    width: 100%;
    height: auto;
}

/* Final resting positions echo the mockup's corner clusters.
   Some clouds rest partly off the edge (negative left/right). */
.cloud-tl1 { top: 12px;  left: -40px;  width: 230px; animation: drift-in-left 0.8s ease-out 0.05s forwards; }
.cloud-tl2 { top: 210px; left: -70px;  width: 360px; animation: drift-in-left 1.0s ease-out 0.15s forwards; }

.cloud-tr1 { top: 40px;  right: -60px; width: 370px; animation: drift-in-right 0.9s ease-out 0.10s forwards; }

.cloud-tl1 img { animation: float-y 9s  ease-in-out 1.8s infinite; }
.cloud-tl2 img { animation: float-y 11s ease-in-out 2.3s infinite; }
.cloud-tr1 img { animation: float-y 10s ease-in-out 2.0s infinite; }

@keyframes drift-in-left {
    0%   { opacity: 0; transform: translateX(-180px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes drift-in-right {
    0%   { opacity: 0; transform: translateX(180px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* Gentle continuous bobbing once clouds have settled */
@keyframes float-y {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(10px); }
    100% { transform: translateY(0); }
}

/* ---------- Titles ---------- */
.display-heading {
    font-family: 'Ogg', Georgia, 'Times New Roman', 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2.6rem;
    letter-spacing: 0.5px;
    text-align: center;
    margin: 6px 0 14px;
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0, 51, 92, 0.45);
}

.display-heading sup {
    font-size: 55%;
    top: -0.7em;
}

.event-meta {
    text-align: center;
    font-size: 1.0rem;
    line-height: 1.7;
    margin-bottom: 8px;
}

.event-meta .meta-sep {
    margin: 0 10px;
    opacity: 0.8;
}

.section-title {
    font-family: 'ArialLocal', Arial, sans-serif;
    font-weight: bold;
    text-align: center;
    font-size: 1.9rem;
    letter-spacing: 0.5px;
    margin: 28px 0 22px;
    color: #ffffff;
}

/* ---------- Form ---------- */
.reg-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.form-label-strong {
    font-weight: bold;
    font-size: 1.05rem;
    color: #ffffff;
    margin-bottom: 8px;
}

.field-hint {
    font-size: 0.82rem;
    color: #eaf4fb;
    margin-bottom: 6px;
    margin-top: -2px;
}

.form-block {
    margin-bottom: 20px;
}

/* When the user picks "No, I will not attend", only Full Name,
   E-mail Address and Mobile Number remain. The rest are hidden
   purely with CSS (no JS needed). */
.reg-form:has(input[name="rsvp"][value="no"]:checked) .yes-only {
    display: none;
}

/* Inputs */
.reg-input {
    width: 100%;
    border: none;
    border-radius: 22px;
    background-color: #ffffff;
    color: #353535;
    font-size: 1rem;
    padding: 12px 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.reg-input::placeholder {
    color: #9a9a9a;
}

.reg-input:focus {
    outline: 2px solid #2e2f6e;
    outline-offset: 1px;
}

/* Disabled / pre-filled email field */
.reg-input.is-disabled,
.reg-input:disabled {
    background-color: #dfdfde;
    color: #8a8a8a;
    cursor: not-allowed;
}

/* RSVP radio group */
.rsvp-group {
    margin-bottom: 24px;
}

.rsvp-option {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 1.05rem;
}

.rsvp-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #ffffff;
    cursor: pointer;
}

/* Consent checkbox */
.consent-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 24px 0 30px;
    font-size: 0.92rem;
}

.consent-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ffffff;
    cursor: pointer;
}

.consent-row a {
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
}

.consent-row a:hover {
    text-decoration: underline;
}

/* Submit button */
.submit-row {
    text-align: center;
    margin-top: 10px;
}

.btn-submit {
    background-color: #2e2f6e;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.05rem;
    border: none;
    border-radius: 22px;
    padding: 11px 46px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-submit:hover {
    background-color: #3a3b86;
    color: #ffffff;
}

/* ---------- Thank-you page ---------- */
.thankyou-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 10px 24px 70px;
    text-align: center;
}

.thankyou-card {
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 44px 30px;
    margin-top: 10px;
}

.thankyou-icon {
    width: 88px;
    height: 88px;
    line-height: 88px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #2e2f6e;
    font-size: 3rem;
    font-weight: bold;
    margin: 0 auto 22px;
}

.thankyou-lead {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 26px;
}

/* ---------- PDPA / Privacy Policy modal ---------- */
.pdpa-modal {
    border: none;
    border-radius: 14px;
    color: #333333;
    font-family: 'ArialLocal', Arial, Helvetica, sans-serif;
}

.pdpa-modal .modal-header {
    background-color: #0077bc;
    color: #ffffff;
    border-bottom: none;
    border-radius: 14px 14px 0 0;
}

.pdpa-modal .modal-title {
    font-weight: bold;
    font-size: 1.2rem;
}

.pdpa-modal .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.pdpa-modal .modal-body {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #333333;
    padding: 22px 26px;
}

.pdpa-modal .modal-body p {
    margin-bottom: 14px;
}

.pdpa-modal .modal-footer {
    border-top: none;
    padding: 14px 26px 20px;
}

.pdpa-modal .modal-footer .btn-submit {
    padding: 8px 30px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    /* Remove clouds on mobile per requirement */
    .cloud-layer {
        display: none;
    }

    .site-banner {
        min-height: 120px;
        padding: 22px 0 4px;
    }

    .display-heading {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .event-meta {
        font-size: 0.9rem;
    }

    .event-meta .meta-sep {
        display: block;
        height: 0;
        margin: 0;
    }
}
