/* PHONE RESPONSIVE TWEAKS */
@media (max-width: 576px) {
    .name-responsive { font-size: 1.1rem !important; }
    
    /* On Phone, remove the fixed height so the row grows when the input appears */
    .veggie-row { min-height: auto !important; }
    
    /* Add some side padding to the container on mobile to reduce clutter feel */
    .content-sizer { padding-left: 10px; padding-right: 10px; }

    /* Shrink buttons */
    .number-stepper-card button {
        width: 45px !important;
        height: 38px !important;
        font-size: 1.25rem !important;
        border-radius: 10px !important;
    }

    /* Shrink gap between buttons and number */
    .number-stepper-card {
        gap: 6px !important;
        justify-content: center; /* optional: keeps them nicely centered */
    }

    /* Shrink number display */
    .number-stepper-card .number-display {
        width: 50px !important;
        font-size: 1.25rem !important;
    }

    /* Reduce vertical gap between label and controls */
    .number-stepper-card-label {
        margin-bottom: 0px !important;
    }
    .d-flex.flex-column.gap-2 {
        gap: 1rem !important; /* increase from gap-2 (~0.5rem) to 1rem */
    }

    .invite-desc {
        padding-left: 1px !important;
        padding-right: 1px !important;
    }
}

/* DESKTOP DEFAULT */
/* On PC, keep the fixed height so it doesn't jump */
.veggie-row { min-height: 50px; }

.content-sizer { min-height: 500px; }
/* Base style for both screens */
.screen-fade {
    opacity: 1;
    /* transition: opacity 0.3s ease, transform 0.3s ease; */
    transform: translateY(0);
    display: block; /* We'll control visibility with classes */
}

/* The "Hidden" state */
.screen-hidden {
    opacity: 0 !important;
    transform: translateY(10px);
    pointer-events: none;
}

/* The "Removed" state (so it doesn't take up space) */
.d-none-alt {
    display: none !important;
}
.custom-glass-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 35px; 
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
    color: #333;
    min-height: 25px;
}

.custom-glass-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: rgba(255, 255, 255, 0.4); 
    border: 1px solid #765689; 
    border-radius: 4px;
    transition: all 0.2s;
}

.custom-glass-checkbox:hover input ~ .checkmark { background-color: rgba(118, 86, 137, 0.1); }
.custom-glass-checkbox input:checked ~ .checkmark { background-color: #765689; }

.checkmark:after { content: ""; position: absolute; display: none; }
.custom-glass-checkbox input:checked ~ .checkmark:after { display: block; }

.custom-glass-checkbox .checkmark:after {
    left: 9px; top: 5px; width: 6px; height: 12px;
    border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.glass-input {
    background-color: rgba(255, 255, 255, 0.4) !important;
    border: 1px solid #765689 !important;
    color: #333 !important;
    border-radius: 14px;
    transition: all 0.25s ease;
}
.glass-input:focus {
    background-color: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 0 0 2px rgba(118, 86, 137, 0.2), 0 3px 9px rgba(118, 86, 137, 0.15) !important;
    transform: translateY(-0.8px);
    outline: none !important;
}
.glass-textarea { resize: none; font-style: italic; }
.glass-input::placeholder { color: rgba(118, 86, 137, 0.6); font-style: italic; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

.btn-glass-cta {
    background-color: #765689; color: white; border: none; padding: 15px 40px; border-radius: 50px;
    box-shadow: 0 10px 20px rgba(118, 86, 137, 0.3); transition: all 0.3s ease;
    text-transform: uppercase; letter-spacing: 1px; font-weight: bold; font-size: 0.9rem; min-width: 220px;
}
.btn-glass-cta:hover { background-color: #5e446d; transform: translateY(-2px); box-shadow: 0 15px 25px rgba(118, 86, 137, 0.4); }

.btn-glass-deny {
    background-color: transparent; color: #765689; border: 2px solid #765689; padding: 13px 40px; border-radius: 50px;
    transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px; font-weight: bold; font-size: 0.9rem; min-width: 220px;
}
.btn-glass-deny:hover { background-color: rgba(118, 86, 137, 0.1); color: #5e446d; }
.number-card {
    background: rgba(255, 255, 255, 0.25); /* subtle background */
    border-radius: 18px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 6px 16px rgba(118, 86, 137, 0.1);
    display: flex;
    flex-direction: column;
}

.number-stepper-card {
    display: flex;
    align-items: center;
    justify-content: space-between; /* left button, number, right button */
    gap: 16px;
}

.number-stepper-card button {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    border: 1px solid #765689;
    background: rgba(255, 255, 255, 0.4);
    color: #765689;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.number-stepper-card button:hover {
    background: rgba(118, 86, 137, 0.1);
    transform: translateY(-1px);
}

.number-display {
    font-size: 1.5rem;
    font-weight: 600;
    width: 60px;
    text-align: center;
}
/* Veggie card container */
.number-card-compact {
    background: rgba(118, 86, 137, 0.05);
    border-radius: 8px;
    padding: 6px 10px; /* keeps compact height */
    border: 1px solid rgba(118, 86, 137, 0.1);
    width: 100%;
    gap: 4px;
}

/* Number stepper row (right side) */
.number-stepper-compact {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Buttons only for veggie card (don’t affect guest buttons) */
.number-stepper-compact button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #765689;
    background: rgba(255, 255, 255, 0.4);
    color: #765689;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.number-stepper-compact button:hover {
    background: rgba(118, 86, 137, 0.1);
    transform: translateY(-1px);
}

/* Number display (compact) */
.number-display-compact {
    width: 40px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
}

.kid-age-card {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid #765689;
    border-radius: 14px;
    padding: 10px 15px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(118, 86, 137, 0.1);
    max-width: 180px; /* prevents stretching too wide */
    flex: 1 1 auto;   /* allow flex to shrink/grow */
}

.kid-age-card label {
    font-weight: 600;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 6px;
}

.kid-age-card select {
    width: 100%;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid #765689;
    background: rgba(255, 255, 255, 0.6);
    text-align: center;
    font-weight: 500;
}

#childrenAgeContainer {
    display: flex;
    flex-wrap: wrap;      /* allow wrapping to new line if needed */
    justify-content: center;
    gap: 12px;            /* horizontal & vertical spacing */
    margin-top: 15px;
}