body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
}

.container {
    max-width: 700px;
}

h2 {
    font-weight: 600;
}

form {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

button {
    border-radius: 8px !important;
}

.form-control, .form-select {
    border-radius: 8px;
}

.btn-primary {
    background-color: #7c3aed;
    border: none;
}

.btn-primary:hover {
    background-color: #6d28d9;
}

.header-image {
    max-height: 180px;
    object-fit: cover;
    width: 100%;
    border-radius: 12px;
}

.page-description {
    font-size: 0.9rem;
    color: #6c757d; /* soft gray */
    margin-top: 10px;
    text-align: center;
}

.page-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 8px;
    margin-bottom: 0;
}

.page-description {
    font-size: 0.95rem;
    color: #6c757d;
    max-width: 500px;
    margin: 10px auto 0 auto;
}

body {
    background: #f7f8fc;
    font-family: 'Poppins', sans-serif;
    color: #2f2f3a;
}

.container {
    max-width: 760px;
    padding-bottom: 40px;
}

.hero-section {
    margin: 24px auto 20px;
}

.header-image {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.page-description {
    font-size: 0.95rem;
    color: #6c757d;
    max-width: 560px;
    margin: 12px auto 0;
    line-height: 1.5;
}

.form-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.page-title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #4b3f72;
}

.form-label {
    font-weight: 500;
    color: #4a4a57;
}

.form-control,
.form-select {
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    border: 1px solid #d9dce7;
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: #9b87f5;
    box-shadow: 0 0 0 0.2rem rgba(155, 135, 245, 0.18);
}

.btn {
    border-radius: 12px;
    padding: 0.7rem 1.2rem;
    font-weight: 500;
}

.btn-primary {
    background-color: #7a5cf0;
    border-color: #7a5cf0;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #6949ee;
    border-color: #6949ee;
}

.btn-outline-primary {
    color: #7a5cf0;
    border-color: #7a5cf0;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: #7a5cf0;
    border-color: #7a5cf0;
}

@media (max-width: 576px) {
    .form-card {
        padding: 20px;
        border-radius: 14px;
    }

    .page-title {
        font-size: 1.35rem;
    }

    .header-image {
        max-height: 160px;
    }
}

#packageContainer {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.package-header {
    display: grid;
    grid-template-columns: 1fr 150px;
    align-items: end;
    column-gap: 16px;
    margin-bottom: 8px;
}

.package-qty-label {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
}

.package-row {
    display: grid;
    grid-template-columns: 1fr 150px;
    column-gap: 16px;
    align-items: start;
}

.package-main {
    min-width: 0;
}

.package-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.package-top .form-check-input {
    margin-top: 0.35rem;
    flex-shrink: 0;
}

.package-title {
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
}

.package-details {
    margin-left: 26px;
    line-height: 1.45;
}

.qty-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 150px;
}

.qty-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #d9dce7;
    background: #fff;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-input {
    width: 64px;
    min-width: 64px;
    text-align: center;
}

@media (max-width: 900px) {
    .package-header {
        display: none;
    }

    .package-row {
        grid-template-columns: 1fr;
    }

    .qty-wrapper {
        justify-content: flex-start;
        margin-top: 8px;
    }
}

#packageContainer,
#addonContainer {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.package-header,
.addon-header {
    display: grid;
    grid-template-columns: 1fr 150px;
    align-items: end;
    column-gap: 16px;
    margin-bottom: 4px;
}

.package-qty-label,
.addon-qty-label {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
}

.package-row,
.addon-row {
    display: grid;
    grid-template-columns: 1fr 150px;
    column-gap: 16px;
    align-items: start;
}

.package-main,
.addon-main {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.package-main .form-check-input,
.addon-main .form-check-input {
    margin-top: 0.35rem;
    flex-shrink: 0;
}

.package-main .form-check-label,
.addon-main .form-check-label {
    margin-bottom: 0;
    line-height: 1.45;
}

.qty-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 150px;
}

.qty-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #d9dce7;
    background: #fff;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.qty-btn:hover:not(:disabled) {
    background: #f3f4f8;
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-input {
    width: 64px;
    min-width: 64px;
    text-align: center;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input[type="number"] {
    -moz-appearance: textfield;
}

@media (max-width: 900px) {
    .package-header,
    .addon-header {
        display: none;
    }

    .package-row,
    .addon-row {
        grid-template-columns: 1fr;
    }

    .qty-wrapper {
        justify-content: flex-start;
        margin-top: 8px;
    }
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.package-qty-label {
    width: 88px;
    min-width: 88px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
}

.package-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.package-main {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
}

.package-main .form-check-input {
    margin-top: 0.35rem;
    flex-shrink: 0;
}

.package-main .form-check-label {
    margin-bottom: 0;
}

.package-qty {
    width: 88px;
    min-width: 88px;
    text-align: center;
}

@media (max-width: 576px) {
    .package-header {
        display: none;
    }

    .package-row {
        flex-direction: column;
    }

    .package-qty {
        width: 100%;
        min-width: 0;
        margin-top: 8px;
    }
}

.addon-header {
    display: grid;
    grid-template-columns: 1fr 90px;
    align-items: end;
    column-gap: 16px;
    margin-bottom: 8px;
}

.addon-qty-label {
    width: 90px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
}

.addon-row {
    display: grid;
    grid-template-columns: 1fr 90px;
    column-gap: 16px;
    align-items: center;
}

.addon-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.addon-main .form-check-input {
    flex-shrink: 0;
}

.addon-main .form-check-label {
    margin-bottom: 0;
}

.addon-qty {
    width: 90px;
    min-width: 90px;
    justify-self: end;
    text-align: center;
}

@media (max-width: 576px) {
    .addon-header {
        display: none;
    }

    .addon-row {
        grid-template-columns: 1fr;
    }

    .addon-qty {
        width: 100%;
        min-width: 0;
        margin-top: 8px;
        justify-self: stretch;
    }
}

#orderSummary p {
    margin-bottom: 0.35rem;
    line-height: 1.35;
}

#orderSummary .summary-box,
#orderSummary .customer-info {
    margin-bottom: 1rem;
}

/* Entire class section spacing */
#orderSummary .class-section {
    margin-bottom: 1.25rem;
}

/* Labels like Packages, Add-ons */
#orderSummary .section-label {
    font-weight: 600;
    margin-top: 0.5rem;
    margin-bottom: 0.2rem;
}

/* Lines under each label */
#orderSummary .section-item {
    margin-bottom: 0.2rem;
    line-height: 1.35;
}

/* Notes line */
#orderSummary .notes-line {
    margin-top: 0.4rem;
}

#orderSummary .class-section {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
}

#orderSummary .class-section {
    margin-bottom: 1rem;
}

#orderSummary .section-label {
    font-weight: 600;
    margin-top: 0.45rem;
    margin-bottom: 0.15rem;
}

#orderSummary .section-item {
    margin-bottom: 0.15rem;
    line-height: 1.35;
}

#orderSummary .notes-line {
    margin-top: 0.35rem;
}

#orderSummary h5 {
    margin-bottom: 0.65rem;
}

#orderSummary hr {
    margin: 1rem 0;
}

#thankYouBanner {
  display: none;
}

.custom-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(24, 24, 35, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.custom-modal-box {
    background: #fff;
    width: 100%;
    max-width: 420px;
    border-radius: 18px;
    padding: 28px 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    text-align: center;
}

.custom-modal-box h4 {
    margin-bottom: 0.5rem;
    color: #4b3f72;
}

.custom-modal-box p {
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.45;
}

.payment-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-links a {
    display: block;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
}

.paypal-btn {
    background: #0070ba;
    color: white;
}

.venmo-btn {
    background: #3d95ce;
    color: white;
}

.payment-links a:hover {
    opacity: 0.9;
}

.quantity-input {
    width: 80px;
    text-align: center;
}

.qty-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 140px;
}

.qty-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #d9dce7;
    background: #fff;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.qty-btn:hover:not(:disabled) {
    background: #f3f4f8;
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-input {
    width: 64px;
    min-width: 64px;
    text-align: center;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
}

/* Hide browser spin buttons for cleaner look */
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input[type="number"] {
    -moz-appearance: textfield;
}

@media (max-width: 576px) {
    .qty-wrapper {
        justify-content: flex-start;
        margin-top: 8px;
    }
}

.alert-warning {
    font-size: 1.1rem;
    border: 2px solid #ffc107;
}

.admin-table th,
.admin-table td {
    white-space: nowrap;
}