* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    scrollbar-color: #f7941d #0b2559;
}

html,
body {
    min-height: 100%;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0b2559;
}

::-webkit-scrollbar-thumb {
    background: #f7941d;
    border-radius: 999px;
    border: 2px solid #0b2559;
}

::-webkit-scrollbar-thumb:hover {
    background: #f15a24;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: #111827;
    background: #06162d;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;

    background:
        linear-gradient(90deg, rgba(5, 20, 45, 0.92), rgba(8, 20, 58, 0.72), rgba(65, 5, 55, 0.88)),
        radial-gradient(circle at top left, rgba(0, 174, 239, 0.35), transparent 32%),
        radial-gradient(circle at bottom right, rgba(236, 0, 140, 0.36), transparent 38%),
        linear-gradient(135deg, #06162d 0%, #092d5f 45%, #150b38 70%, #4a063f 100%);

    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

/* HEADER */

.site-header {
    /* background: rgba(255, 255, 255, 0.92); */
    /* border-bottom: 1px solid #e5e7eb; */
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand-logo {
    width: 55px;
    height: 55px;
    display: flex;
    font-weight: 800;
    color: #374151;
}

.brand-logo img {
    width: 55px;
    height: 55px;
}

.back-link {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.back-link:hover {
    background: #FF6C00;
    color: #ffffff;
    border-color: #0b3a8d;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(11, 58, 141, 0.22);
}

/* PAGE */

.registration-section {
    padding: 54px 0 70px;
    /* background:
            radial-gradient(circle at top left, rgba(247, 148, 29, 0.14), transparent 32%),
            radial-gradient(circle at top right, rgba(39, 169, 225, 0.12), transparent 34%),
            #f5f7ff; */
}

.registration-hero {
    max-width: 880px;
    margin: 0 auto 30px;
    text-align: center;
}

.registration-hero span {
    margin: 0 0 12px;
    font-size: clamp(32px, 5vw, 49px);
    line-height: 1.05;
    letter-spacing: -0.05em;
    font-weight: 900;
    /* color: #111827; */
    color: white;
}

.registration-hero p {
    margin: 0 auto;
    max-width: 720px;
    color: #01a6f8;
    font-size: 16px;
    line-height: 1.7;
}

.errmsg {
    margin: 30px 30px 0px 30px !important;
}

.form-shell {
    max-width: 920px;
    margin: 0 auto;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 24px 55px rgba(0, 208, 255, 0.700);
    overflow: hidden;
    border: 1px solid #00ccff77;
}

.form-top {
    padding: 28px 32px;
    /* background: linear-gradient(135deg, #0b2559 0%, #0f4fb8 100%); */
    background: linear-gradient(180deg, #bd2b03, #f7b733);
    color: #ffffff;
}

.form-top h2 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 900;
}

.form-top p {
    margin: 0;
    color: rgba(255, 255, 255, 0.96);
    font-size: 15px;
    line-height: 1.6;
}

.quest-form {
    padding: 32px;
}

.form-section-title {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 900;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff1df;
    color: #f15a24;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    flex-shrink: 0;
}

#coach_name.form-input,
#coach_email.form-input,
#division.form-dropdown,
#participants.form-input,
#school_code.form-input {
    border-radius: 14px;
}

#division.form-dropdown .icon {
    color: #f15a24;
}

#coach_name.form-input:focus,
#coach_email.form-input:focus,
#participants.form-input:focus,
#school_code.form-input:focus {
    border: 1px solid #00ccff;
}

#division.form-dropdown:focus {
    border: 1px solid #00ccff;
}

#division.form-dropdown .menu {
    border-radius: 0px 0px 14px 14px;
}

#division.form-dropdown .menu {
    border: 1px solid #00ccff;
    border-top: none;
}

.field #school_code {
    max-width: 300px;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.choice-card {
    position: relative;
}

.choice-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-card label {
    min-height: 94px;
    border-radius: 18px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s ease;
}

.choice-card strong {
    display: block;
    margin-bottom: 5px;
    font-size: 17px;
    color: #111827;
}

.choice-card span {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.choice-card input:checked+label {
    border-color: #f7941d;
    background: #fff7ed;
    box-shadow: 0 12px 28px rgba(247, 148, 29, 0.14);
}

.confirmation-box {
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    padding: 18px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.confirmation-box input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.confirmation-box label {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.submit-btn,
.clear-btn {
    min-height: 48px;
    border-radius: 999px;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.22s ease;
}

.submit-btn {
    border: none;
    background: #f7941d;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(247, 148, 29, 0.3);
}

.submit-btn:hover {
    background: #f15a24;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(241, 90, 36, 0.36);
}

.submit-btn:disabled {
    background: #9ca3af;
    color: #ffffff;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
    opacity: 0.7;
}

.submit-btn:disabled:hover {
    background: #9ca3af;
    transform: none;
    box-shadow: none;
}

.clear-btn {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
}

.clear-btn:hover {
    background: #f3f4f6;
}

/* SWAL ALERT */

/* Remove SweetAlert padding */
    .swal2-popup {
        padding: 0 !important;
        overflow: hidden;
        border-radius: 24px !important;
    }

    /* Main Card */
    .registration-card {
        background: #ffffff;
        border: 1px solid #109ac4;
        border-radius: 24px;
        overflow: hidden;
        font-family: inherit;
        text-align: left;
    }

    .swal2-popup.registration-popup{
        background: transparent !important;
        max-width:950px !important;
        border-radius:24px !important;
        padding:0 !important;
        
    }

    .swal2-html-container{
        margin:0 !important;
        padding:0 !important;
    }

    /* ===========================
    HEADER
    =========================== */

    .registration-header {
        position:relative;
        background: linear-gradient(135deg, #0b1e52 0%, #173f8c 100%);
        color: #fff;
        padding: 35px 35px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
    }

    .registration-brand {
        display: flex;
        align-items: center;
        gap: 18px;
    }

    .registration-brand img {
        width: 72px;
        height: 72px;
        object-fit: contain;
    }
    

    .registration-label {
        display: block;
        font-size: 16px;
        font-weight: 900;
        color: #d7e3ff;
        letter-spacing: 1px;
        margin-bottom: 5px;
    }

    .registration-event {
        margin: 0;
        font-size: 30px;
        font-weight: 900;
    }

    

    /* ===========================
    REFERENCE
    =========================== */

    .registration-reference {
        background: rgba(255,255,255,.12);
        border: 1px solid rgba(255,255,255,.18);
        backdrop-filter: blur(5px);
        border-radius: 14px;
        padding: 14px 18px;
        min-width: 210px;
    }

    .registration-reference span {
        display: block;
        font-size: 16px;
        font-weight: 900;
        color: #d6e2ff;
        margin-bottom: 4px;
    }

    .registration-reference strong {
        font-size: 20px;
        color: #FFD54F;
        letter-spacing: 1px;
    }

    /* ===========================
    STATUS
    =========================== */

    .registration-status {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin: -50px 35px 25px;
        background: #22c55e;
        color: #fff;
        padding: 10px 18px;
        border-radius: 50px;
        font-size: 14px;
        font-weight: 600;
        position:absolute;
        left: 10px;
        bottom: -45px;
        box-shadow: 0 8px 20px rgba(34,197,94,.25);


    }

    /* ===========================
    TITLE
    =========================== */

    .registration-title {
        padding: 0 35px;
        font-size: 30px;
        font-weight: 700;
        color: #0b1e52;
    }

    .registration-title span {
        color: #f58220;
    }

    /* ===========================
    DESCRIPTION
    =========================== */

    .registration-description {
        padding: 18px 35px 0;
        line-height: 1.8;
        color: #4b5563;
        font-size: 15px;
    }

    /* ===========================
    INFO GRID
    =========================== */
    .reg-info-tag{
        padding: 10px 35px;
    }

    .registration-tag{
        background: #f8fafc;
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        padding: 18px;
    }

    .registration-tag .label {
        display: block;
        font-size: 12px;
        text-transform: uppercase;
        color: #64748b;
        letter-spacing: .8px;
        margin-bottom: 8px;
    }

    .registration-tag strong {
        display: block;
        color: #0f172a;
        font-size: 17px;
    }

    .registration-grid {
        padding: 0px 35px;
        display: grid;
        grid-template-columns: repeat(2,1fr);
        gap: 10px;

    }

    .registration-item {
        background: #f8fafc;
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        padding: 18px;
    }

    .registration-item .label {
        display: block;
        font-size: 12px;
        text-transform: uppercase;
        color: #64748b;
        letter-spacing: .8px;
        margin-bottom: 8px;
    }

    .registration-item strong {
        display: block;
        color: #0f172a;
        font-size: 17px;
    }

    /* ===========================
    FOOTER
    =========================== */

    .registration-footer {
        border-top: 1px solid #e5e7eb;
        background: #fafafa;
        padding: 22px 35px;
        margin-top: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
    }

    .registration-note {
        color: #64748b;
        font-size: 14px;
    }

    .registration-actions{
        display:flex;
        gap:12px;
    }

    .ui.basic.blue.button.save-image:hover{
        background: #0089fa !important;
        color: #fff !important;
    }

    /* ==========================================
   TABLET
    ========================================== */

    @media (max-width: 992px){

        .registration-header{
            padding:30px;
        }

        .registration-title{
            font-size:26px;
            padding:0 30px;
        }

        .registration-description{
            padding:18px 30px 0;
        }

        .registration-grid{
            padding:0 30px;
        }

        .reg-info-tag{
            padding:10px 30px;
        }

        .registration-footer{
            padding:20px 30px;
        }

        .registration-reference{
            min-width:190px;
        }

    }



/* RESPONSIVE */

@media screen and (max-width: 700px) {
    .container {
        width: min(100% - 24px, 1120px);
    }

    .back-link{
     margin-bottom: 20px;
    }

    .header-inner {
        min-height: 66px;
    }

    .brand-logo {
        width: 50px;
        height: 50px;
        font-size: 14px;
    }

    .back-link {
        min-height: 38px;
        padding: 0 13px;
        font-size: 12px;
    }

    .registration-section {
        padding: 34px 0 48px;
    }

    .registration-hero {
        text-align: left;
        margin-left: 15px;
        margin-right: 15px;
    }

    .form-top {
        padding: 24px 22px;
    }

    .quest-form {
        padding: 24px 20px;
    }

    .field #school_code {
        max-width: none;
        width: 100%;

    }

    .choice-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .submit-btn,
    .clear-btn {
        width: 100%;
    }

    /* SWAL */
    .registration-header{
            flex-direction:column;
            align-items:flex-start;
            gap:20px;
            margin-bottom:45px;
        }

        .registration-reference{
            width:100%;
            min-width:unset;
        }

        .registration-status{
            left:30px;
            top:auto;
            bottom:-22px;
            margin:0;
        }

        .registration-title{
            font-size:24px;
            line-height:1.4;
            padding:0 30px;
        }

        .registration-grid{
            grid-template-columns:1fr;
        }

        .registration-footer{
            flex-direction:column;
            align-items:stretch;
        }

        .registration-actions{
            width:100%;
        }

        .registration-actions button{
            flex:1;
        }
        	
}