@media (max-width: 768px) {
    .photos-container {
        margin-top: 220px !important;
        position: relative;
    }
}

    @media (max-width: 768px) {
    .gallery-wrapper {
        margin-top: 100px !important;
        position: relative;
    }
}
/* Show/hide price sheet for mobile/desktop */
/* Hide mobile-only by default, show on mobile. Hide desktop-only on mobile, show on desktop. */
.mobile-only { display: none !important; }
.desktop-only { display: block !important; }
@media (max-width: 900px) {
    .mobile-only { display: block !important; }
    .desktop-only { display: none !important; }
}
@media (min-width: 901px) {
    .mobile-only { display: none !important; }
    .desktop-only { display: block !important; }
}
@media (max-width: 900px) {
    .signup-scrollable {
        flex-direction: column;
        align-items: center;
    }
}
.form-boxlogin {
    margin-top: 60px;
}
/* Price sheet beside signup bar */
.price-sheet {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-width: 300px;
    max-width: 420px;
    padding: 48px 36px;
    color: #fff;
    background: rgba(0,0,0,0.15);
    font-size: 1.2em;
    margin-left: 24px;
    border-radius: 0 18px 18px 0;
    box-sizing: border-box;
}
.price-sheet h2 {
    color: #fff;
    font-size: 1.6em;
    margin-bottom: 18px;
    font-weight: 700;
    width: 100%;
    text-align: center;
}
.price-sheet ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}
.price-sheet li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    font-size: 1.1em;
}
.price-sheet li:last-child {
    border-bottom: none;
}
.price-sheet span {
    font-weight: 500;
}
@media (max-width: 900px) {
    .price-sheet {
        max-width: 100%;
        min-width: 0;
        width: 100%;
        margin-left: 0;
        border-radius: 0 0 18px 18px;
        padding: 24px 12px;
        align-items: center;
    }
}

.payment-sheet {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-width: 300px;
    max-width: 420px;
    padding: 48px 36px;
    color: #fff;
    background: rgba(0,0,0,0.15);
    font-size: 1.2em;
    margin-left: 24px;
    border-radius: 0 18px 18px 0;
    box-sizing: border-box;
}
.payment-sheet h2 {
    color: #fff;
    font-size: 1.6em;
    margin-bottom: 18px;
    font-weight: 700;
    width: 100%;
    text-align: center;
}
.payment-sheet ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    align-items: center;
    text-align: center;
}
.payment-sheet li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    font-size: 1.1em;
    text-align: center;
}
.payment-sheet a {
    color: white;
    align-items: center;
    text-align: center;
}
.payment-sheet li:last-child {
    border-bottom: none;
}
.payment-sheet span {
    font-weight: 500;
}
@media (max-width: 900px) {
    .payment-sheet {
        max-width: 100%;
        min-width: 0;
        width: 100%;
        margin-left: 0;
        border-radius: 0 0 18px 18px;
        padding: 24px 12px;
        align-items: center;
    }
}
/* Flex layout for signup with bar */
.signup-flex {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    min-height: 700px;
}

.signup-bar {
    width: 2px;
    background: #fff;
    margin: 0 0 0 24px;
    border-radius: 2px;
    opacity: 0.8;
    align-self: stretch;
    height: auto;
    min-height: 0;
    margin-left: 20px;
    margin-right: 20px;
}

@media (max-width: 900px) {
    .signup-flex {
        flex-direction: column;
        align-items: center;
    }
    .signup-bar {
        width: 80%;
        height: 2px;
        min-height: unset;
        margin: 24px 0;
    }
}
#confirmBox { position: fixed; inset: 0; display: none; justify-content: center; align-items: center; background: rgba(0,0,0,0.45); z-index: 9999; }
.confirm-content { background: #fff; color: #111; padding: 18px 20px; border-radius: 8px; width: min(520px, 92%); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.confirm-close { position: absolute; right: 12px; top: 8px; background: transparent; border: none; font-size: 24px; cursor: pointer; }
.confirm-content h3 { margin-top: 0; }

/* Admin/Container Styles */
.container {
    max-width: 1200px;
    margin: 100px auto 0;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, .5);
}

.container h1 {
    color: #333;
    margin-bottom: 10px;
}

.container > p {
    color: #666;
    margin-bottom: 20px;
}

.controls {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-export, .btn-export-csv, .btn-clear {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: 0.3s;
}

.btn-export {
    background: #4CAF50;
    color: white;
}

.btn-export:hover {
    background: #45a049;
}

.btn-export-csv {
    background: #2196F3;
    color: white;
}

.btn-export-csv:hover {
    background: #0b7dda;
}

.btn-clear {
    background: #f44336;
    color: white;
}

.btn-clear:hover {
    background: #da190b;
}

.stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-box {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #667eea;
    flex: 1;
    min-width: 150px;
}

.stat-box h3 {
    color: #667eea;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.stat-box p {
    font-size: 2em;
    font-weight: bold;
    color: #333;
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #667eea;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

tbody tr:hover {
    background: #f5f5f5;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #999;
}

.shirt-cell {
    font-size: 0.9em;
    word-break: break-word;
}

.action-btn {
    padding: 8px 12px;
    font-size: 0.85em;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    touch-action: manipulation;
}

.action-btn:hover {
    background: #da190b;
}

@media (max-width: 1024px) {
    .container {
        margin-top: 80px;
        padding: 20px;
    }

    th, td {
        padding: 8px;
    }
}

@media (max-width: 768px) {
    .container {
        margin-top: 100px;
        padding: 15px;
    }

    .container h1 {
        font-size: 1.5em;
    }

    .controls {
        flex-direction: column;
        gap: 8px;
    }

    .controls button {
        width: 100%;
        padding: 12px;
        font-size: 0.95em;
    }

    .stats {
        flex-direction: column;
    }

    .stat-box {
        min-width: 100%;
    }

    table {
        font-size: 0.85em;
    }

    th {
        padding: 8px 6px;
        font-size: 0.85em;
    }

    td {
        padding: 10px 6px;
    }

    .shirt-cell {
        font-size: 0.75em;
        max-width: 150px;
    }

    .action-btn {
        padding: 6px 10px;
        font-size: 0.75em;
    }

    .table-wrapper {
        overflow-x: scroll;
    }
}
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

button, input[type="checkbox"], input[type="radio"], select {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 100px;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 99;
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
        flex-wrap: wrap;
        position: relative;
        position: fixed;
    }
}

.logo {
    width: 75px;
    height: 75px;
    object-fit: contain;
    user-select: none;
}

@media (max-width: 768px) {
    .logo {
        width: 75px;
        height: 75px;
    }
}

.navigation a {
    position: relative;
    font-size: 1.1em;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 40px;
    padding-top: 10px;
    padding-bottom: 10px;
}

@media (max-width: 768px) {
    .navigation {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
    }

    .navigation a {
        font-size: 0.9em;
        margin-left: 10px;
        padding: 8px;
    }
}



.navigation .btnLogin-popup {
    width: 130px;
    height: 50px;
    background: transparent;
    border: 2px solid #fff;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    color:#fff;
    font-weight: 500;
    margin-left: 40px;
    transition: .5s;
    padding-top: 10px;
    padding-bottom: 10px;
}

.navigation .btnInfo-popup {
    background: transparent;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    color:#fff;
    font-weight: 500;
    margin-left: 40px;
    transition: .5s;
}

.navigation .btnLogin-popup:hover {
    background: #fff;
    color: blue
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url('cbp.webp') no-repeat;
    background-size: cover;
    background-position: center;
    padding: 20px;
    padding-top: 120px;
}

/* Ensure main content never goes behind the fixed header */
/* Ensure main content never goes behind the fixed header */
.main-content, .photos-container, .container, .signup, .infoPage, .aboutPage {
    margin-top: 120px;
}

@media (max-width: 900px) {
    .main-content, .photos-container, .container, .signup, .infoPage, .aboutPage {
        margin-top: 80px;
    }
}
}

@media (max-width: 768px) {
    .main-content, .container, .signup, .infoPage, .aboutPage {
        margin-top: 0;
    }
}


@media (max-width: 768px) {
    body {
        padding: 20px 10px;
        padding-top: 100px;
    }
}

.wrapper {
    position: absolute;
    width: 400px;
    height: 440px;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 20px;
    backdrop-filter: blur(40px);
    box-shadow: 0 0 30px rgba(0, 0, 0, .5);
    display:flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transform: scale(0);
    transition: transform .5s ease-in-out, height .2s ease;
    z-index: 3;
}

.infoPage {
    position: relative;
    width: 75%;
    height: 75%;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 30px rgba(0, 0, 0, .5);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
    transition: transform .5s ease-in-out, height .2s ease;
    padding-bottom: 32px;
}

.infoPage h1 {
    color: #fff;
    font-size: 2em;
    text-align: center;
    padding: 32px 20px 12px 20px;
    margin: 0;
    width: 100%;
}

.aboutPage {
    position: relative;
    width: 400px;
    height: 440px;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 30px rgba(0, 0, 0, .5);
    display:flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: transform .5s ease-in-out, height .2s ease;
}

.aboutPage h1 {
    color: #fff;
    font-size: 2em;
    text-align: center;
    padding: 20px;
}



@media (max-width: 768px) {
    .wrapper {
        width: 90%;
        max-width: 400px;
        height: auto;
    }
}

.wrapper.active-popup {
    transform: scale(1);
    transition: .5s;
}

.wrapper .icon-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 45px;
    height: 45px;
    background: #fff;
    font-size: 2em;
    color: blue;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-bottom-left-radius: 20px;
    overflow: hidden;
    z-index: 1;
}

.wrapper h2 {
    font-size: 2em;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .wrapper {
        padding-top: 120px;
        padding-left: 2vw;
        padding-right: 2vw;
    }
    .wrapper .form-box, .form-box {
        padding: 18px 6px !important;
        max-height: 80vh;
        overflow-y: auto;
        font-size: 1em;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }
    .signup-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .signup-bar {
        width: 100%;
        height: 2px;
        margin: 18px 0;
    }
    .price-sheet, .payment-sheet {
        max-width: 100vw;
        min-width: 0;
        width: 100%;
        margin-left: 0;
        border-radius: 0 0 18px 18px;
        padding: 18px 6px;
        align-items: center;
        font-size: 1em;
        overflow-x: auto;
    }
    .shirt-sizes {
        flex-wrap: wrap;
        gap: 8px;
    }
    .shirt-row {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 10px;
    }
    .input-box {
        width: 100%;
        min-width: 0;
    }
    .shirt-size label, .shirt-row label {
        font-size: 1em;
    }
    .logo {
        max-width: 60vw;
        height: auto;
    }
    header {
        padding: 10px 2vw;
        flex-wrap: wrap;
    }
    .navigation {
        flex-wrap: wrap;
        gap: 8px;
    }
    .navigation a, .navigation button {
        font-size: 1em;
        padding: 6px 10px;
    }
    body {
        font-size: 1em;
    }
}

.form-boxlogin h2 {
    font-size: 2em;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

.form-boxlogin h3 {
    color: #fff;
    text-align: center;
    font-weight: 600;
}


/* Unified scroll container for signup */
.signup-scrollable {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    min-height: 700px;
}

@media (max-width: 768px) {
    .form-box h2 {
        font-size: 1.5em;
        margin-bottom: 20px;
    }
}

.input-box {
    position: relative;
    width: 100%;
    height: 50px;
    border-bottom: 2px solid #fff;
    margin: 30px 0;
}

@media (max-width: 768px) {
    .input-box {
        height: 45px;
        margin: 20px 0;
    }
}

.input-box label {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    font-size: 1em;
    color: #fff;
    font-weight: 500;
    pointer-events: none;
    transition: .5s;
}

.input-box input:focus ~ label,
.input-box input:valid ~ label {
    top: -5px;
}

.input-box input{
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1em;
    color: #fff;
    font-weight: 600;
}

@media (max-width: 768px) {
    .input-box input {
        font-size: 16px;
    }
}

.input-box .icon {
    position: absolute;
    right: 8px;
    font-size: 1.2em;
    color: #fff;
    line-height: 57px;
}

.remember-forgot {
    font-size: .9em;
    color: #fff;
    font-weight: 500;
    margin: -15px 0 15px;
    display: flex;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .remember-forgot {
        font-size: 0.8em;
        flex-wrap: wrap;
    }
}

.btn {
    width: 100%;
    height: 45px;
    background: #fff;
    border: none;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    color: blue;
    transition: .3s;
}

@media (max-width: 768px) {
    .btn {
        height: 50px;
        font-size: 0.95em;
    }
}

.signup {
    position: relative;
    width: 75%;
    height: 75%;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 30px rgba(0, 0, 0, .5);
    display:flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: transform .5s ease-in-out, height .2s ease;
}

@media (max-width: 1024px) {
    .signup {
        width: 90%;
        max-width: 500px;
        height: auto;
    }
}

@media (max-width: 768px) {
    .signup {
        width: 95%;
        max-width: 100%;
        border-radius: 15px;
        margin: 20px 0;
    }
}

.signup-btn {
    width: 100%;
    height: 45px;
    background: #fff;
    border: none;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    color: blue;
    transition: .3s;
    margin-top: auto;
}

@media (max-width: 768px) {
    .signup-btn {
        height: 50px;
        font-size: 0.95em;
        margin-top: 15px;
    }
}

h3{
     color: #fff;
}

@media (max-width: 768px) {
    h3 {
        font-size: 0.95em;
    }
}

/* Shirt fields styling to match signup form */
        .shirt-section { margin:12px 0; padding:8px 0; }
        .shirt-row { display:flex; gap:8px; align-items:center; margin:6px 0 12px 0;  color: #fff; flex-wrap: wrap; }
        .shirt-row label { min-width:36px;  color: #fff; }
        .shirt-legend { font-weight:600; margin-bottom:6px;  color: #fff; }
        /* Inline sizes group */
        .shirt-sizes { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
        .shirt-size { display:flex; flex-direction:column; align-items:center; font-size:14px; color: #fff; }
        .shirt-size label { min-width:unset; margin-bottom:6px; }
        .shirt-size select { min-width:56px; padding: 8px 4px; font-size: 14px; height: 40px; }
        /* highlight invalid selects briefly */
        .invalid-select { outline: 2px solid #b00; }
        /* error box style */
        #shirtError { background:#ffecec; color:#b00; padding:8px 10px; border-radius:6px; font-weight:600; }
        .shirt-section.has-error .shirt-sizes { border:2px solid #b00; padding:8px; border-radius:6px; }

        select {
            -webkit-appearance: none;
            appearance: none;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 5px center;
            background-size: 1.5em;
            padding-right: 2em;
            cursor: pointer;
        }

        @media (max-width: 768px) {
            .shirt-sizes {
                gap: 8px;
            }

            .shirt-size {
                font-size: 12px;
            }

            .shirt-size label {
                margin-bottom: 4px;
            }

            .shirt-size select {
                min-width: 50px;
                padding: 6px 3px;
                font-size: 12px;
                height: 38px;
            }

            .shirt-row {
                flex-direction: column;
                align-items: flex-start;
            }
        }