* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f7fa;
    color: #1a1a1a;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Email Entry Form Styles */
.email-container {
    max-width: 500px;
    margin: 80px auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 48px 40px;
}

.email-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.email-form-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.email-form-subtitle {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.5;
}

.email-form-group {
    margin-bottom: 32px;
}

.email-form-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.email-form-input {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    color: #1a1a1a;
    transition: all 0.2s;
    background: white;
}

.email-form-input:focus {
    outline: none;
    border-color: #3C7FEB;
    box-shadow: 0 0 0 4px rgba(60, 127, 235, 0.1);
}

.email-form-input::placeholder {
    color: #9ca3af;
}

.email-submit-btn {
    width: 100%;
    padding: 18px;
    background: #3C7FEB;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(60, 127, 235, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.email-submit-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(60, 127, 235, 0.4);
}

.email-form-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
}

/* Order Container Styles */
.order-container {
    max-width: 600px;
    margin: 40px auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.page-header {
    padding: 40px 40px 32px;
    border-bottom: 1px solid #e6e6e6;
    background: #ffffff;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    letter-spacing: -0.5px;
}

.total-section {
    padding: 40px;
    border-bottom: 2px solid #f0f0f0;
    background: white;
    text-align: center;
}

.total-amount {
    font-size: 64px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 6px;
    letter-spacing: -2px;
    line-height: 1;
}

.total-label-small {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.content {
    padding: 40px;
}

.line-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #f0f0f0;
}

.item-icon {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.item-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
}

.item-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
    line-height: 1.3;
}

.item-description {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.quantity-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f9fafb;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3C7FEB;
    transition: all 0.2s;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.quantity-btn:hover {
    background: #3C7FEB;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(60, 127, 235, 0.3);
}

.quantity-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.quantity-value {
    min-width: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.item-price {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: right;
}

.subtotal-section {
    padding: 24px 0;
    margin-bottom: 32px;
}

.subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.subtotal-label {
    font-size: 16px;
    color: #6b7280;
    font-weight: 500;
}

.subtotal-value {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 24px;
    background: #fafbfc;
    border-radius: 12px;
}

.total-label {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.total-value {
    font-size: 36px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -1px;
}

.addons-section {
    margin-top: 40px;
}

.addons-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.addon-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.addon-item:hover {
    border-color: #3C7FEB;
    box-shadow: 0 4px 12px rgba(60, 127, 235, 0.1);
}

.addon-icon {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.addon-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.addon-details {
    flex: 1;
}

.addon-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.addon-description {
    font-size: 14px;
    color: #6b7280;
}

.addon-price {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-right: 16px;
}

.addon-add-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #3C7FEB;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #3C7FEB;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.addon-add-btn:hover {
    background: #3C7FEB;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(60, 127, 235, 0.3);
}

.addon-add-btn.added {
    background: #3C7FEB;
    border-color: #3C7FEB;
    color: white;
}

.checkout-btn {
    width: 100%;
    padding: 18px;
    background: #3C7FEB;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 32px;
    box-shadow: 0 8px 24px rgba(60, 127, 235, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.checkout-btn:hover:not(:disabled):not(.is-loading) {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(60, 127, 235, 0.4);
}

.checkout-btn:disabled,
.checkout-btn.is-loading {
    opacity: 0.85;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}

.checkout-btn-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: checkout-btn-spin 0.75s linear infinite;
    flex-shrink: 0;
}

.checkout-btn.is-loading .checkout-btn-spinner {
    display: inline-block;
}

@keyframes checkout-btn-spin {
    to {
        transform: rotate(360deg);
    }
}

.attendees-section {
    margin-top: 32px;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

.attendees-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.attendee-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.attendee-card:last-child {
    margin-bottom: 0;
}

.attendee-number {
    font-size: 14px;
    font-weight: 700;
    color: #3C7FEB;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.purchaser-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.purchaser-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.purchaser-hint {
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.form-group {
    margin-bottom: 16px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.form-label .required {
    color: #ef4444;
    margin-left: 2px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    color: #1a1a1a;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #3C7FEB;
    box-shadow: 0 0 0 4px rgba(60, 127, 235, 0.1);
}

.form-input.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.error-message {
    font-size: 13px;
    color: #ef4444;
    margin-top: 4px;
}

.hidden {
    display: none;
}

.coupon-section {
    margin-top: 32px;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px dashed #e5e7eb;
}

.coupon-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.coupon-input-group {
    display: flex;
    gap: 12px;
}

.coupon-input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    color: #1a1a1a;
    text-transform: uppercase;
    transition: all 0.2s;
    font-weight: 600;
    letter-spacing: 1px;
}

.coupon-input:focus {
    outline: none;
    border-color: #3C7FEB;
    box-shadow: 0 0 0 4px rgba(60, 127, 235, 0.1);
}

.coupon-input.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.coupon-input.success {
    border-color: #10b981;
    background: #f0fdf4;
}

.coupon-apply-btn {
    padding: 14px 28px;
    background: #3C7FEB;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(60, 127, 235, 0.2);
}

.coupon-apply-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(60, 127, 235, 0.3);
}

.coupon-apply-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.coupon-message {
    font-size: 13px;
    margin-top: 8px;
    display: none;
}

.coupon-message.error {
    color: #ef4444;
    display: block;
}

.coupon-message.success {
    color: #10b981;
    display: block;
}

.coupon-applied {
    display: none;
    margin-top: 16px;
    padding: 16px;
    background: #ecfdf5;
    border: 2px solid #10b981;
    border-radius: 10px;
    align-items: center;
    justify-content: space-between;
}

.coupon-applied.show {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.coupon-applied-main {
    flex: 1;
}

.coupon-applied-text {
    font-size: 15px;
    color: #059669;
    font-weight: 600;
}

.coupon-applied-detail {
    margin-top: 6px;
    font-size: 13px;
    color: #047857;
    font-weight: 400;
    line-height: 1.4;
}

.coupon-remove-btn {
    padding: 8px 16px;
    background: transparent;
    color: #059669;
    border: 2px solid #059669;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.coupon-remove-btn:hover {
    background: #059669;
    color: white;
    transform: translateY(-1px);
}

.discount-row {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding: 12px 16px;
    background: #ecfdf5;
    border-radius: 8px;
}

.discount-row.show {
    display: flex;
}

.discount-label {
    font-size: 15px;
    color: #059669;
    font-weight: 600;
}

.discount-value {
    font-size: 16px;
    font-weight: 700;
    color: #059669;
}

@media screen and (max-width: 640px) {
    .order-container {
        margin: 12px;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    .page-header {
        padding: 24px 20px 20px;
    }

    .page-title {
        font-size: 22px;
    }

    .total-section {
        padding: 28px 20px;
    }

    .total-amount {
        font-size: 48px;
    }

    .content {
        padding: 24px 20px;
    }

    .line-item {
        display: grid;
        grid-template-columns: 56px 1fr;
        grid-template-rows: auto auto;
        column-gap: 12px;
        row-gap: 8px;
        margin-bottom: 24px;
        padding-bottom: 24px;
    }

    .item-icon {
        width: 56px;
        height: 56px;
        grid-row: 1 / span 2;
        grid-column: 1;
    }

    .item-details {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
    }

    .item-name {
        font-size: 16px;
    }

    .item-price {
        grid-column: 2;
        grid-row: 2;
        text-align: left;
        font-size: 16px;
    }

    .addon-item {
        display: grid;
        grid-template-columns: 48px 1fr auto;
        grid-template-rows: auto auto;
        column-gap: 12px;
        row-gap: 8px;
        padding: 16px;
        align-items: start;
    }

    .addon-icon {
        width: 48px;
        height: 48px;
        grid-row: 1 / span 2;
        grid-column: 1;
    }

    .addon-details {
        grid-column: 2 / 4;
        grid-row: 1;
        min-width: 0;
    }

    .addon-name {
        font-size: 15px;
    }

    .addon-price {
        grid-column: 2;
        grid-row: 2;
        margin-right: 0;
        text-align: left;
        font-size: 16px;
        align-self: center;
    }

    .addon-add-btn {
        grid-column: 3;
        grid-row: 2;
        align-self: center;
        padding: 8px 14px;
        font-size: 14px;
        white-space: nowrap;
    }

    .total-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 20px;
    }

    .total-value {
        font-size: 28px;
    }

    .coupon-input-group {
        flex-direction: column;
    }

    .coupon-apply-btn {
        width: 100%;
    }

    .coupon-applied.show {
        flex-direction: column;
        align-items: stretch;
    }

    .coupon-remove-btn {
        align-self: flex-start;
    }

    .attendees-section {
        padding: 16px;
    }

    .attendee-card {
        padding: 16px;
    }

    .form-input,
    .coupon-input {
        font-size: 16px;
    }

    .checkout-btn {
        font-size: 16px;
        padding: 16px;
    }
}
