/* Dynamic CSS for Restaurant #2 */

:root {
    --primary-color: #32373c;
    --primary-hover: #2d3136;
    --primary-light: #464d54;
    --text-color: #000000;
    --heading-color: #32373c;
    --font-family: 'Georgia', serif;
    --heading-font: 'Georgia', serif;
    --border-radius: 8px;
    --background-color: #ffffff;
    --card-background: #ffffff;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--background-color) 0%, #fafafa 100%);
    padding: 40px 20px;
    min-height: 100vh;
}

.container {
    max-width: 650px;
    margin: 0 auto;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-family: var(--heading-font);
    font-size: 32px;
    color: var(--heading-color);
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.restaurant-name {
    font-size: 15px;
    color: var(--text-color);
    opacity: 0.7;
    font-weight: 400;
    line-height: 1.5;
}

.support-phone {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.75;
    font-weight: 500;
    margin-top: 12px;
    line-height: 1.6;
}

.support-phone a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.support-phone a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.restaurant-logo {
    max-width: 120px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
}

/* Voucher Form Wrapper */
.voucher-form-wrapper {
    background: var(--card-background);
    border-radius: calc(var(--border-radius) * 2);
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08),
                0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.voucher-form-wrapper:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1),
                0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Step Indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    gap: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: all 0.3s ease;
    user-select: none;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 0.7;
    cursor: pointer;
}

.step.completed:hover {
    opacity: 1;
    transform: scale(1.05);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8e8e8;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.1);
}

.step.completed .step-number {
    background: var(--primary-color);
    color: white;
}

.step-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
}

.step-line {
    flex: 1;
    height: 3px;
    background: #e8e8e8;
    margin: 0 12px;
    margin-bottom: 28px;
    max-width: 80px;
    transition: background 0.3s ease;
}

.step-line.completed {
    background: var(--primary-color);
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeInStep 0.4s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Step Navigation Buttons */
.step-navigation {
    display: flex;
    gap: 12px;
}

.step-navigation .btn {
    flex: 1;
}

/* Selected Amount Badge */
.selected-amount-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border: 2px solid var(--primary-color);
    border-radius: calc(var(--border-radius) * 1.5);
    margin-bottom: 30px;
    font-size: 16px;
}

.badge-label {
    color: #888;
    font-weight: 600;
}

.badge-amount {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.badge-edit {
    background: none;
    border: none;
    color: var(--primary-color);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px 8px;
    transition: all 0.2s ease;
}

.badge-edit:hover {
    color: var(--primary-hover);
    transform: scale(1.05);
}

/* Form Sections */
.form-section {
    margin-bottom: 45px;
}

.form-section h2 {
    font-family: var(--heading-font);
    font-size: 20px;
    color: var(--heading-color);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.06);
    font-weight: 700;
    letter-spacing: -0.3px;
    position: relative;
}

.form-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-color);
}

/* Disabled Form Section */
.form-section.disabled-section {
    opacity: 0.5;
    pointer-events: none;
}

.form-section.disabled-section .voucher-amounts,
.form-section.disabled-section .custom-amount-wrapper {
    filter: grayscale(50%);
}

/* Alert Message */
.alert-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: calc(var(--border-radius) * 1.5);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #92400e;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.alert-message svg {
    color: #d97706;
    margin-top: 1px;
}

/* Voucher Amount Selection */
.voucher-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 10px;
    overflow: visible;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                margin 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.amount-option {
    position: relative;
}

.amount-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.amount-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: white;
    border: 3px solid #e8e8e8;
    border-radius: calc(var(--border-radius) * 1.8);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    min-height: 140px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.amount-label::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: #e8e8e8;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.amount-label:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    background: #fafafa;
}

.amount-label:hover::before {
    background: var(--primary-color);
    width: 40px;
}

.amount-option input[type="radio"]:checked + .amount-label {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18),
                0 0 0 4px rgba(0, 0, 0, 0.05);
}

.amount-option input[type="radio"]:checked + .amount-label::before {
    background: rgba(255, 255, 255, 0.3);
    width: 40px;
}

.amount-option input[type="radio"]:checked + .amount-label .currency,
.amount-option input[type="radio"]:checked + .amount-label .value {
    color: white;
}

.amount-display {
    display: flex;
    align-items: center;
    justify-content: center;
}

.amount-display::after {
    content: '';
    width: 15px;
    flex-shrink: 0;
}

.amount-label .currency {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    opacity: 0.8;
    margin-right: 2px;
    transition: all 0.3s ease;
    line-height: 1;
    flex-shrink: 0;
}

.amount-label .value {
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
    color: var(--heading-color);
    transition: all 0.3s ease;
    letter-spacing: -1.5px;
}

/* Quantity Badge */
.quantity-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 20px;
    display: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    animation: fadeInScale 0.3s ease;
}

.amount-option input[type="radio"]:checked + .amount-label .quantity-badge {
    display: block;
}

.amount-option input[type="radio"]:checked + .amount-label .quantity-badge[data-quantity="1"] {
    display: none;
}

.custom-amount-card-content .quantity-badge {
    display: block;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.custom-amount-card-content .quantity-badge[data-quantity="1"] {
    display: none;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Quantity Selector */
.quantity-selector {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    animation: fadeInUp 0.3s ease;
}

.amount-option input[type="radio"]:checked + .amount-label .quantity-selector,
.custom-amount-card .quantity-selector {
    display: flex;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.qty-btn:hover {
    background: white;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.qty-btn:active {
    transform: scale(0.98);
}

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

.qty-btn:disabled:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Custom Amount Card Quantity Selector */
.custom-amount-card-content .quantity-selector {
    display: flex;
    position: relative;
    bottom: auto;
    margin-top: 0;
    margin-bottom: 16px;
    padding: 0;
    border: none;
}

.custom-amount-card-content .qty-btn {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    width: 28px;
    height: 28px;
    font-size: 15px;
}

.custom-amount-card-content .qty-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Custom Amount */
.custom-amount-wrapper {
    margin-top: 20px;
}

/* Custom Amount Card */
.custom-amount-card {
    animation: fadeInUp 0.4s ease;
}

.custom-amount-card-content {
    padding: 32px 20px 20px;
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: calc(var(--border-radius) * 1.8);
    text-align: center;
    position: relative;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18),
                0 0 0 4px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px) scale(1.02);
}

.custom-amount-card-content::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.custom-amount-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 12px;
    opacity: 0.7;
}

.custom-amount-card-content .amount-display {
    margin-bottom: 20px;
}

.custom-amount-card-content .amount-display .currency {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    opacity: 0.8;
    transition: all 0.3s ease;
    line-height: 1;
    margin-right: 2px;
    flex-shrink: 0;
}

.custom-amount-card-content .amount-display .value {
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
    color: var(--heading-color);
    transition: all 0.3s ease;
    letter-spacing: -1.5px;
}

.custom-amount-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.custom-amount-edit,
.custom-amount-remove {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: calc(var(--border-radius) * 1.2);
    color: var(--primary-color);
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-amount-edit:hover,
.custom-amount-remove:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.custom-amount-remove {
    border-color: #dc3545;
    color: #dc3545;
}

.custom-amount-remove:hover {
    background: #dc3545;
    border-color: #dc3545;
}

.custom-amount-edit svg,
.custom-amount-remove svg {
    flex-shrink: 0;
}

.custom-amount-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: none;
    border: 2px dashed #d0d0d0;
    border-radius: calc(var(--border-radius) * 1.2);
    color: var(--primary-color);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.custom-amount-toggle:hover {
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.02);
}

.custom-amount-toggle.selected {
    background: var(--primary-light);
    border-style: solid;
    border-color: var(--primary-color);
}

.custom-amount-toggle svg {
    flex-shrink: 0;
}

.custom-amount-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border: 2px solid var(--primary-color);
    border-radius: calc(var(--border-radius) * 1.5);
    animation: slideDown 0.3s ease;
}

.custom-amount-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: calc(var(--border-radius) * 1.2);
    font-size: 18px;
    font-family: inherit;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
    margin-bottom: 4px;
    -moz-appearance: textfield;
}

.custom-amount-input::-webkit-outer-spin-button,
.custom-amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.custom-amount-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
}

.custom-amount-input-wrapper button {
    width: 100%;
    padding: 10px 20px;
    border-radius: calc(var(--border-radius) * 1.2);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-amount-apply {
    background: var(--primary-color);
    color: white;
    border: none;
}

.custom-amount-apply:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.custom-amount-cancel {
    background: white;
    color: #dc3545;
    border: 2px solid #dc3545;
    margin-top: -2px;
}

.custom-amount-cancel:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
    transform: translateY(-1px);
}

.custom-amount-hint {
    text-align: center;
    font-size: 12px;
    color: #888;
    font-weight: 500;
    margin-top: -2px;
}

/* Voucher Type Selection */
.voucher-type-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 10px;
}

.voucher-type-option {
    position: relative;
}

.voucher-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.voucher-type-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    background: white;
    border: 3px solid #e8e8e8;
    border-radius: calc(var(--border-radius) * 1.8);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    min-height: 140px;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.voucher-type-label svg {
    color: #888;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.voucher-type-label:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    background: #fafafa;
}

.voucher-type-label:hover svg {
    color: var(--primary-color);
    transform: scale(1.1);
}

.voucher-type-option input[type="radio"]:checked + .voucher-type-label {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18),
                0 0 0 4px rgba(0, 0, 0, 0.05);
}

.voucher-type-option input[type="radio"]:checked + .voucher-type-label svg {
    color: white;
}

.voucher-type-option input[type="radio"]:checked + .voucher-type-label .type-title,
.voucher-type-option input[type="radio"]:checked + .voucher-type-label .type-description {
    color: white;
}

.type-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--heading-color);
    margin: 4px 0 2px 0;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.type-description {
    font-size: 13px;
    font-weight: 500;
    color: #888;
    line-height: 1.4;
    transition: all 0.3s ease;
}

/* Disabled Voucher Type Option */
.voucher-type-option.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.voucher-type-option.disabled .voucher-type-label {
    cursor: not-allowed;
    background: #f5f5f5;
    border-color: #e0e0e0;
}

.voucher-type-option.disabled .voucher-type-label:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    background: #f5f5f5;
    border-color: #e0e0e0;
}

.voucher-type-option.disabled .voucher-type-label svg {
    color: #bbb;
}

.voucher-type-option.disabled .voucher-type-label:hover svg {
    color: #bbb;
    transform: none;
}

.voucher-type-option.disabled .type-title,
.voucher-type-option.disabled .type-description {
    color: #999;
}

/* Coming Soon Badge */
.coming-soon-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    vertical-align: middle;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

/* Order Summary */
.order-summary {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border: 2px solid #e8e8e8;
    border-radius: calc(var(--border-radius) * 1.5);
    padding: 20px;
    margin-bottom: 30px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
}

.summary-amount {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: -1px;
}

/* Stripe Card Element */
.stripe-card-element {
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: calc(var(--border-radius) * 1.2);
    background: #fafafa;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stripe-card-element:hover {
    border-color: #d0d0d0;
    background: white;
}

.stripe-card-element.StripeElement--focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
    background: white;
}

.stripe-card-element.StripeElement--invalid {
    border-color: #dc3545;
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 10px;
    font-size: 14px;
    letter-spacing: 0.2px;
}

/* Terms & Conditions Scrollable Box */
.terms-scrollable-box {
    max-height: 200px;
    overflow-y: auto;
    background: #fafafa;
    border: 2px solid #e8e8e8;
    border-radius: calc(var(--border-radius) * 1.2);
    padding: 16px 18px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.terms-scrollable-box:hover {
    border-color: #d0d0d0;
    background: white;
}

.terms-list {
    list-style-position: outside;
    padding-left: 20px;
    margin: 0;
}

.terms-list li {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-color);
    padding-left: 8px;
}

/* Custom scrollbar styling for webkit browsers */
.terms-scrollable-box::-webkit-scrollbar {
    width: 8px;
}

.terms-scrollable-box::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.terms-scrollable-box::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
    transition: background 0.2s ease;
}

.terms-scrollable-box::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 8px;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--primary-color);
}

.checkbox-label {
    font-weight: 400 !important;
    margin-bottom: 0 !important;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    cursor: pointer;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}

.checkbox-label a:hover {
    color: var(--primary-hover);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: calc(var(--border-radius) * 1.2);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafafa;
    color: var(--text-color);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #d0d0d0;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}

.form-help {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #888;
    line-height: 1.5;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: calc(var(--border-radius) * 1.5);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:disabled {
    background: linear-gradient(135deg, #ccc 0%, #bbb 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Form Actions */
.form-actions {
    margin-top: 30px;
}

.spinner {
    display: inline-block;
}

/* Error Messages */
.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f8d7da 0%, #fce4e6 100%);
    border: 2px solid #f5c6cb;
    border-radius: calc(var(--border-radius) * 1.2);
    display: none;
    font-weight: 500;
    border-left: 4px solid #dc3545;
}

.error-message.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Footer */
.form-footer {
    margin-top: 24px;
    text-align: center;
    color: #888;
    font-size: 13px;
    line-height: 1.6;
}

/* Secure Info */
.secure-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid rgba(0, 0, 0, 0.05);
    color: #888;
    font-size: 13px;
    font-weight: 600;
}

.secure-info svg {
    color: var(--primary-color);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Success Page Styles */
.success-wrapper {
    background: var(--card-background);
    border-radius: calc(var(--border-radius) * 2);
    padding: 40px 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08),
                0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

.success-icon {
    margin-bottom: 20px;
    animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-icon svg circle {
    fill: #4CAF50;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    font-family: var(--heading-font);
    font-size: 28px;
    color: var(--heading-color);
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.success-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.voucher-details-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 250, 250, 0.9) 100%);
    border: 2px solid var(--primary-color);
    border-radius: calc(var(--border-radius) * 2);
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.voucher-details-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
}

.voucher-amount-display {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 18px;
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.voucher-code-display {
    margin: 18px 0 0 0;
    padding: 16px;
    background: white;
    border-radius: calc(var(--border-radius) * 1.5);
    border: 2px dashed var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.voucher-code-display label {
    display: block;
    font-size: 11px;
    color: #888;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.voucher-code-display .code {
    font-size: 28px;
    font-weight: 800;
    color: var(--heading-color);
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
}

.order-reference {
    margin-top: 20px;
    font-size: 14px;
    color: #888;
}

.order-reference label {
    font-weight: 700;
    margin-right: 8px;
    color: var(--heading-color);
}

/* Compact Info Box */
.info-box-compact {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: calc(var(--border-radius) * 1.5);
    padding: 20px;
    margin: 25px 0;
    text-align: left;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 14px;
    line-height: 1.5;
}

.info-item:first-child {
    padding-top: 0;
}

.info-item:last-child {
    padding-bottom: 0;
}

.info-item:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.info-item svg {
    flex-shrink: 0;
    color: var(--primary-color);
    opacity: 0.8;
}

.info-item strong {
    color: var(--heading-color);
    font-weight: 600;
}

/* Delivery Info */
.delivery-info {
    margin: 35px 0;
    text-align: left;
}

.delivery-info h3 {
    font-family: var(--heading-font);
    font-size: 20px;
    color: var(--heading-color);
    margin-bottom: 18px;
    font-weight: 700;
}

.address-box {
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    padding: 20px;
    border-radius: calc(var(--border-radius) * 1.5);
    border: 2px solid #e8e8e8;
    line-height: 1.7;
    font-size: 15px;
}

/* Action Buttons */
.action-buttons {
    margin: 30px 0;
}

.action-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Support Info */
.support-info {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
    font-size: 14px;
    color: #6c757d;
}

.support-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.support-info a:hover {
    text-decoration: underline;
}

/* Message Box */
.message-box {
    background: var(--card-background);
    border-radius: calc(var(--border-radius) * 2);
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08),
                0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

.message-box h1 {
    font-family: var(--heading-font);
    font-size: 32px;
    color: var(--heading-color);
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.message-box p {
    color: #888;
    margin-bottom: 28px;
    line-height: 1.7;
    font-size: 15px;
}

/* Extra small screens */
@media (max-width: 400px) {
    .voucher-amounts {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .amount-label {
        padding: 18px 8px;
        min-height: 110px;
        border-width: 2px;
    }

    .amount-label::before {
        top: 8px;
        width: 20px;
    }

    .amount-label .currency {
        font-size: 16px;
        margin-right: 1px;
    }

    .amount-label .value {
        font-size: 24px;
    }

    .quantity-selector {
        gap: 5px;
        bottom: 8px;
    }

    .qty-btn {
        width: 22px;
        height: 22px;
        font-size: 13px;
    }

    .custom-amount-card-content .amount-display .currency {
        font-size: 16px;
    }

    .custom-amount-card-content .amount-display .value {
        font-size: 24px;
    }

    .custom-amount-actions {
        flex-direction: column;
        gap: 6px;
    }

    .custom-amount-edit,
    .custom-amount-remove {
        font-size: 11px;
        padding: 6px 14px;
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    body {
        padding: 20px 15px;
    }

    .container {
        max-width: 100%;
    }

    .voucher-form-wrapper,
    .success-wrapper,
    .message-box {
        padding: 30px 25px;
        border-radius: calc(var(--border-radius) * 1.5);
    }

    .header {
        margin-bottom: 30px;
    }

    .header h1 {
        font-size: 26px;
    }

    .step-indicator {
        margin-bottom: 30px;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .step-label {
        font-size: 11px;
    }

    .step-line {
        max-width: 50px;
        margin: 0 8px;
    }

    .step-navigation {
        flex-direction: column;
    }

    .step-navigation .btn {
        width: 100%;
    }

    .order-summary {
        padding: 16px;
    }

    .summary-row {
        font-size: 16px;
    }

    .summary-amount {
        font-size: 24px;
    }

    .selected-amount-badge {
        padding: 10px 16px;
        margin-bottom: 25px;
        font-size: 14px;
    }

    .badge-amount {
        font-size: 20px;
    }

    .badge-edit {
        font-size: 13px;
    }

    .restaurant-name {
        font-size: 14px;
    }

    .support-phone {
        font-size: 13px;
        margin-top: 10px;
    }

        .restaurant-logo {
        max-width: 100px;
        margin-bottom: 18px;
    }
    
    .form-section {
        margin-bottom: 35px;
    }

    .form-section h2 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .voucher-amounts {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .amount-label {
        padding: 20px 10px;
        min-height: 120px;
    }

    .amount-label::before {
        top: 10px;
        width: 24px;
        height: 2px;
    }

    .amount-label:hover::before,
    .amount-option input[type="radio"]:checked + .amount-label::before {
        width: 30px;
    }

    .amount-label .currency {
        font-size: 18px;
        margin-right: 2px;
    }

    .amount-label .value {
        font-size: 28px;
        letter-spacing: -1px;
    }

    .custom-amount-toggle {
        font-size: 13px;
        padding: 10px 16px;
    }

    .custom-amount-input-wrapper {
        padding: 14px;
        gap: 8px;
    }

    .custom-amount-input {
        font-size: 16px;
        padding: 10px 12px;
        margin-bottom: 2px;
    }

    .custom-amount-input-wrapper button {
        padding: 9px 18px;
    }

    .custom-amount-hint {
        font-size: 11px;
        margin-top: -1px;
    }

    .custom-amount-card-content {
        padding: 28px 18px 18px;
    }

    .custom-amount-card-content::before {
        top: 10px;
        width: 30px;
        height: 2px;
    }

    .custom-amount-card-content .amount-display .currency {
        font-size: 18px;
    }

    .custom-amount-card-content .amount-display .value {
        font-size: 28px;
        letter-spacing: -1px;
    }

    .custom-amount-actions {
        gap: 8px;
    }

    .custom-amount-card-content .qty-btn {
        width: 26px;
        height: 26px;
        font-size: 14px;
    }

    .custom-amount-edit,
    .custom-amount-remove {
        font-size: 12px;
        padding: 7px 16px;
    }

    .voucher-type-label {
        padding: 20px 16px;
        min-height: 120px;
        gap: 8px;
    }

    .voucher-type-label svg {
        width: 20px;
        height: 20px;
    }

    .type-title {
        font-size: 15px;
    }

    .type-description {
        font-size: 12px;
    }

    .quantity-badge {
        top: 6px;
        right: 6px;
        font-size: 12px;
        padding: 3px 8px;
    }

    .quantity-selector {
        gap: 6px;
        bottom: 9px;
    }

    .qty-btn {
        width: 23px;
        height: 23px;
        font-size: 13px;
    }

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

    .form-group input,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .btn {
        padding: 14px 28px;
        font-size: 15px;
    }

    .success-title {
        font-size: 28px;
    }

    .success-subtitle {
        font-size: 15px;
    }

    .voucher-amount-display {
        font-size: 44px;
    }

    .voucher-code-display .code {
        font-size: 22px;
        letter-spacing: 2px;
    }

    .info-box {
        padding: 22px;
    }

    .info-box h3 {
        font-size: 18px;
    }

    .info-box li {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .delivery-info h3 {
        font-size: 18px;
    }

    .address-box {
        padding: 16px;
        font-size: 14px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .action-buttons {
        display: none;
    }
}
