.event-registration-main {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    width: 100%;
    margin-top: 50px;
}

.event-registration-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 100vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}

.event-registration-left::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.event-registration-right {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
}

.event-registration-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: 100%;
    margin-bottom: 0px;
}

/* ========================================================================== */
/* first card */
.event-registration-ticket {
    display: flex;
    flex-direction: row;
    align-items: center;
    /* vertically center everything */
    justify-content: space-between;
    /* pushes quantity button to far right */
    gap: 15px;
    padding: 20px 25px;
    width: 100%;
}

.event-price {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.event-early {
    display: flex;
    flex-direction: column;
    font-size: small;
    color: black;
    gap: 2px;
}

.ticket-remaining-left {
    background: rgba(234, 116, 19, 0.15);
    color: #ff8000;
    font-size: small;
    font-weight: 600;
    border-radius: 5px;
    padding: 2px 8px;
}

.quantity-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    /* space between buttons and number */
}

.quantity-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    /* smaller size */
    height: 40px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    /* adjusted for smaller circle */
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.quantity-button:disabled {
    background-color: #a6d8a8;
    cursor: not-allowed;
    pointer-events: none;
}


.quantity-button:hover {
    background-color: #218838;
    transform: scale(1.05);
}

.quantity-value {
    font-weight: 500;
    min-width: 25px;
    text-align: center;
    color: black;
}

/* ========================================================================== */
/* second card */
.attendee-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 20px 25px;
}

.attendee-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
}

.ticket-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: black;
    font-weight: 500;
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #28a745;
    /* green */
    border-radius: 50%;
}

.attendee-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    align-self: stretch;
}

.attendee-form-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    align-self: stretch;
}

.attendee-form-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

.attendee-form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    align-items: start;
    align-self: stretch;
}

.attendee-label {
    display: block;
    font-weight: 500;
    font-size: small;
}

.attendee-required {
    color: red;
    font-size: small;
    font-weight: 500;
}

/* input fields */
.attendee-input {
    display: block;
    width: 100%;
    all: unset;
    /* removes all browser default styles */
    box-sizing: border-box;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: #000;
    background-color: #f8f8f8;
    transition: border-color 0.2s ease;
}

.attendee-input:focus {
    border-color: #3369d5;
    outline: none;
}

.attendee-input:disabled {
    background-color: #d9d9d9;

}

/* ======================================================================================== */
/* third card */
.dynamic-cards-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    /* Adjust as needed */
    width: 100%;
    /* Full width like the other cards */
}

/* ======================================================================================== */
/* forth card */
.order-summary {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 20px 25px;
}

.order-summary-ticket {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-ticket-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-divider {
    border-top: 1px solid #ddd;
}

/* ======================================================================================== */
/* fifth card */
.promo-code {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 20px 25px;
}

.promo-code-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.promo-code-field {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.promo-code-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    font-size: 14px;
    font-family: inherit;
    color: #000;
    background-color: #f8f8f8;
    transition: border-color 0.2s ease;
    border-radius: 8px 0 0 8px;
    border-right: none;
}

.promo-code-input:focus {
    border-color: #3369d5;
    outline: none;
}

.promo-code-btn {
    border: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-radius: 0 8px 8px 0;
    background-color: #fff;
    color: #3858e4;
    font-size: small;
    font-weight: 600;
    padding: 10px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.promo-code-btn:hover {
    background-color: rgb(234, 234, 234);
}

.promo-tag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f3fef6;
    /* light translucent green background */
    border: 1px solid #b2e5c0;
    /* soft green border */
    border-radius: 12px;
    padding: 10px 14px;
    color: #1e7e34;
    /* dark green text */
    font-weight: 500;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.promo-tag svg,
.promo-tag i {
    /* color: #1e7e34; */
    /* icon color */
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s ease;
}

/* ======================================================================================== */
/* sixth card */
.payment-method-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 20px 25px;
}

.payment-method {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.payment-method-flex {
    display: flex;
    align-items: center;
    gap: 15px;
    line-height: 1;
}

.payment-method-flex input[type="radio"] {
    transform: scale(1.2);
    /* increase size — adjust 1.2 to 2 for bigger */
    accent-color: #007bff;
    /* optional: change color to match theme */
    cursor: pointer;
}

.payment-method-flex label {
    margin: 0;
    line-height: 1;
    cursor: pointer;
    font-weight: 500;
}

.payment-method-img {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgb(246, 246, 246);
    padding: 15px;
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
    gap: 10px;
}

.payment-method-img img {
    width: 100%;
    max-width: 340px;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

/* ================================================================= */
/* pop up */
.voucher-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.voucher-modal-content {
    background-color: #fff;
    margin: 5% auto;
    border-radius: 16px;
    width: 95%;
    max-width: 450px;
    max-height: 80vh;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.voucher-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding: 18px 24px;
}

.voucher-modal-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
    max-height: 70vh;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari, and Opera */
.voucher-modal-body::-webkit-scrollbar {
    display: none;
}

.voucher-close {
    cursor: pointer;
    font-size: 22px;
    font-weight: bold;
}

.voucher-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.voucher-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.voucher-item:hover {
    background-color: #e9f4ff;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.voucher-info {
    flex: 1;
}

.voucher-title {
    font-weight: 600;
    color: #111827;
    font-size: 1rem;
    margin-bottom: 6px;
}

.voucher-details {
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.voucher-code {
    background-color: #f3f4f6;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    align-self: center;
    white-space: nowrap;
}

/* Medium screens and up */
@media (min-width: 1024px) {

    /* Main section side by side */
    .event-registration-main {
        flex-direction: row;
        gap: 1.25rem;
        align-items: flex-start;
        /* align top of both sections */
    }

    /* Section-specific width using flex */
    .event-registration-left {
        flex: 2;
        /* left section larger */
        gap: 1.25rem;
    }

    .event-registration-right {
        flex: 1;
        /* right section smaller */
        gap: 1.25rem;
    }
}

@media (min-width: 768px) {
    .attendee-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .attendee-header {
        flex-direction: row;
    }
}