/* Campaign Form Styles */

.campaign-form-section {
    min-height: 100vh;
    padding: 1rem 0 2rem;
    background: var(--bg-light);
    overflow-x: hidden;
}

@media (min-width: 768px) {
    .campaign-form-section {
        padding: 1.5rem 0 3rem;
    }
}

@media (min-width: 1024px) {
    .campaign-form-section {
        padding: 2rem 0 4rem;
    }
}

/* Progress Bar */
.progress-container {
    max-width: min(600px, calc(100% - 2rem));
    margin: 0 auto 3rem;
}

.progress-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.progress-labels span.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Form Container */
.form-container {
    max-width: min(800px, calc(100% - 2rem));
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
    .form-container {
        padding: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .form-container {
        padding: 3rem;
    }
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .form-header {
        margin-bottom: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .form-header {
        margin-bottom: 3rem;
    }
}

.form-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .form-header h1 {
        font-size: 2rem;
    }
}

@media (min-width: 768px) {
    .form-header h1 {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .form-header h1 {
        font-size: 2.5rem;
    }
}

.form-header p {
    font-size: 1rem;
    color: var(--text-gray);
}

@media (min-width: 768px) {
    .form-header p {
        font-size: 1.125rem;
    }
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeInStep 0.4s ease;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-step h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .form-step h2 {
        font-size: 1.625rem;
    }
}

@media (min-width: 1024px) {
    .form-step h2 {
        font-size: 1.75rem;
    }
}

.step-description {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

/* Business Type Grid */
.business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 640px) {
    .business-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
}

/* Business Type Dropdown */
.business-type-select-wrapper {
    max-width: 400px;
    margin: 0 auto 2rem;
}

.business-type-dropdown {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
}

.business-type-dropdown:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.business-type-dropdown:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.business-type-dropdown option {
    font-size: 1rem;
    padding: 0.75rem;
}

.business-card {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.25rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .business-card {
        padding: 1.5rem 1rem;
    }
}

.business-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.business-card.selected {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.business-card.selected::after {
    content: '✓';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: bold;
}

.business-icon {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .business-icon {
        font-size: 2.5rem;
    }
}

.business-card span {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Membership Type Grid (Step 2) */
.membership-type-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.membership-type-option {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.membership-type-option:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.membership-type-option.selected {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.membership-type-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.membership-type-icon {
    font-size: 1.5rem;
}

.membership-type-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.membership-type-option p {
    font-size: 0.875rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

/* Input Groups */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    max-width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 16px;
    font-family: inherit;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Card Type Grid (legacy) */
.card-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Recommended Campaigns Layout */
.step-sub-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.campaign-options-list,
.other-campaign-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.campaign-option {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .campaign-option {
        padding: 1.5rem;
    }
}

.campaign-option:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.campaign-option.selected {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.campaign-option-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.campaign-option-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.campaign-option-title h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.25rem 0;
}

.campaign-option-desc {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.4;
}

.campaign-examples {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 3.5rem;
}

.campaign-examples li {
    font-size: 0.8rem;
    color: var(--text-gray);
    line-height: 1.5;
    position: relative;
    padding-left: 1rem;
}

.campaign-examples li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary-color);
}

@media (max-width: 640px) {
    .campaign-examples {
        padding-left: 2.75rem;
    }
}

.other-options-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    cursor: pointer;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
}

.other-options-toggle:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--primary-color);
}

.other-options-toggle #toggleArrow {
    transition: transform 0.3s ease;
    display: inline-block;
}

.other-options-toggle.expanded #toggleArrow {
    transform: rotate(180deg);
}

/* Reward Example Box */
.reward-example-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.reward-example-box em {
    color: #000000;
    font-style: italic;
    font-weight: 600;
}

.required {
    color: #ef4444;
}

.field-hint {
    font-size: 0.8rem;
    color: #374151;
    margin-top: 0.35rem;
    line-height: 1.5;
}

/* Range Slider */
.range-slider-group {
    padding: 0.5rem 0;
}

.form-range {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-color, #6366f1);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.form-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-color, #6366f1);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #374151;
}

.range-current {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1rem;
}

/* Toggle Switch */
.toggle-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #cbd5e1;
    border-radius: 26px;
    transition: 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary-color, #6366f1);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

.toggle-label {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.4;
}

/* Coupon Loyalty Tip */
.coupon-loyalty-tip {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
}

.coupon-loyalty-tip p {
    font-size: 0.85rem;
    color: #92400e;
    margin: 0;
    line-height: 1.5;
}

.coupon-loyalty-tip p:first-child {
    margin-bottom: 0.25rem;
}

/* Membership Levels */
.membership-levels-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.membership-level-row {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.level-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.level-header .level-name-input {
    flex: 1;
    font-weight: 700;
    font-size: 1rem;
}

.level-remove-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 8px;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.level-remove-btn:hover {
    background: #fecaca;
}

.level-points {
    margin-bottom: 0.75rem;
}

.level-points .level-points-input {
    max-width: 150px;
}

.level-benefit-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.benefit-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-dark);
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.benefit-tag button {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    line-height: 1;
}

.add-level-btn {
    width: 100%;
    padding: 0.75rem;
    border: 2px dashed var(--border-color);
    background: transparent;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.add-level-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.03);
}

.card-type-option {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .card-type-option {
        padding: 1.5rem;
    }
}

.card-type-option:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.card-type-option.selected {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.card-type-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.card-type-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
}

.popular-badge {
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-type-option p {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Card Preview Mini */
.card-preview-mini {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-stamps {
    display: flex;
    gap: 0.35rem;
}

.mini-stamp {
    width: 32px;
    height: 32px;
    border: 2px solid var(--border-color);
    border-radius: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-gray);
}

.mini-stamp.filled {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.points-display {
    text-align: center;
}

.points-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.points-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.membership-badge-mini {
    background: var(--gradient-1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.35rem;
    font-weight: 700;
    font-size: 0.875rem;
}

.coupon-text-mini {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* Additional Card Type Mini Previews */
.ticket-mini {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.boarding-mini {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.gift-mini {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.business-mini {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.policy-mini {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Config Groups */
.config-group {
    display: none;
}

.config-group.active {
    display: block;
}

.coupon-text-mini {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* Color Picker */
.color-picker-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.color-input-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-white);
}

.color-input {
    width: 60px;
    height: 40px;
    border: none;
    border-radius: 0.35rem;
    cursor: pointer;
}

.color-value {
    font-family: monospace;
    font-size: 0.95rem;
    color: var(--text-gray);
}

/* Card Preview Large */
.card-preview-large {
    margin-top: 2rem;
}

.preview-card {
    background: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 1rem;
    padding: 2rem;
    min-height: 200px;
    box-shadow: var(--shadow-xl);
}

.preview-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.preview-content {
    margin-top: 1.5rem;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-message h2 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.success-message p {
    color: var(--text-gray);
    max-width: 500px;
    margin: 0 auto;
}

.final-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.form-navigation button {
    min-width: 120px;
}

/* Responsive */
@media (max-width: 1024px) {
    .business-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.875rem;
    }

    .card-type-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .campaign-form-section {
        padding: 1rem 0 2rem;
    }

    .progress-container {
        max-width: 100%;
        padding: 0 1rem;
    }

    .form-container {
        padding: 2rem 1.5rem;
        border-radius: 1rem;
    }

    .form-header {
        margin-bottom: 2rem;
    }

    .form-header h1 {
        font-size: 2rem;
    }

    .form-header p {
        font-size: 1rem;
    }

    .form-step h2 {
        font-size: 1.5rem;
    }

    .step-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .business-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .business-card {
        padding: 1.25rem 0.875rem;
    }

    .business-icon {
        font-size: 2rem;
    }

    .business-card span {
        font-size: 0.875rem;
    }

    .card-type-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        gap: 1rem;
    }

    .card-type-option {
        padding: 1.25rem;
    }

    .card-type-header h3 {
        font-size: 1rem;
    }

    .card-type-option p {
        font-size: 0.8125rem;
    }

    .color-picker-group {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .preview-card {
        padding: 1.5rem;
    }

    .preview-card h3 {
        font-size: 1.25rem;
    }

    .form-navigation {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .form-navigation button {
        min-width: 100px;
    }

    .input-group label {
        font-size: 0.9375rem;
    }

    .form-input,
    .form-input select,
    .form-input textarea {
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .campaign-form-section {
        padding: 0.5rem 0 1.5rem;
    }

    .progress-container {
        margin-bottom: 2rem;
    }

    .form-container {
        padding: 1.5rem 1rem;
        border-radius: 0.75rem;
    }

    .form-header {
        margin-bottom: 1.5rem;
    }

    .form-header h1 {
        font-size: 1.75rem;
    }

    .form-header p {
        font-size: 0.9375rem;
    }

    .form-step h2 {
        font-size: 1.375rem;
    }

    .step-description {
        font-size: 0.875rem;
    }

    .business-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
    }

    .business-card {
        padding: 1rem 0.75rem;
    }

    .business-icon {
        font-size: 1.75rem;
        margin-bottom: 0.375rem;
    }

    .business-card span {
        font-size: 0.8125rem;
    }

    .card-type-grid {
        gap: 0.875rem;
    }

    .card-type-option {
        padding: 1rem;
    }

    .card-type-header h3 {
        font-size: 0.9375rem;
    }

    .popular-badge {
        font-size: 0.625rem;
        padding: 0.2rem 0.4rem;
    }

    .card-type-option p {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .card-preview-mini {
        padding: 0.75rem;
        min-height: 50px;
    }

    .mini-stamp {
        width: 28px;
        height: 28px;
        font-size: 0.6875rem;
    }

    .coupon-text-mini,
    .gift-mini {
        font-size: 1.25rem;
    }

    .ticket-mini,
    .boarding-mini,
    .business-mini,
    .policy-mini {
        font-size: 1rem;
    }

    .input-group {
        margin-bottom: 1rem;
    }

    .input-group label {
        font-size: 0.875rem;
        margin-bottom: 0.375rem;
    }

    .form-input {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    .color-input {
        width: 50px;
        height: 36px;
    }

    .color-value {
        font-size: 0.875rem;
    }

    .preview-card {
        padding: 1.25rem;
        min-height: 180px;
    }

    .preview-card h3 {
        font-size: 1.125rem;
    }

    .form-navigation {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }

    .form-navigation button {
        width: 100%;
        min-width: unset;
    }

    .success-icon {
        width: 64px;
        height: 64px;
        font-size: 2.5rem;
    }

    .success-message h2 {
        font-size: 1.5rem;
    }

    .final-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .final-actions .btn-primary,
    .final-actions .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 360px) {
    .business-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .business-card {
        padding: 0.875rem 0.5rem;
    }

    .business-icon {
        font-size: 1.5rem;
    }

    .business-card span {
        font-size: 0.75rem;
    }

    .form-header h1 {
        font-size: 1.5rem;
    }

    .form-step h2 {
        font-size: 1.25rem;
    }

    .mini-stamp {
        width: 24px;
        height: 24px;
        font-size: 0.625rem;
    }
    
    .card-type-option {
        border-width: 1.5px;
    }

    .color-picker-group {
        grid-template-columns: 1fr;
    }

    .form-navigation {
        flex-direction: column-reverse;
    }

    .form-navigation button {
        width: 100%;
    }

    .final-actions {
        flex-direction: column;
    }

    .final-actions .btn-large {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 1.5rem 1rem;
    }

    .form-header h1 {
        font-size: 1.75rem;
    }

    .business-grid {
        grid-template-columns: 1fr;
    }

    .business-card {
        padding: 1.25rem 1rem;
    }

    .business-icon {
        font-size: 2rem;
    }

    .preview-card {
        padding: 1.5rem;
    }
}

/* QR Content Options */
.qr-content-option {
    transition: all 0.2s ease;
}

.qr-content-option:hover {
    border-color: #a5b4fc !important;
    background: #f1f5f9 !important;
}

.qr-content-option input[type="radio"]:checked + div::before {
    content: '✓';
    display: inline-block;
    margin-right: 0.5rem;
    color: #6366f1;
}

/* Custom Fields Section */
.custom-field-row {
    transition: all 0.2s ease;
}

.custom-field-row:hover {
    border-color: #6366f1 !important;
}

.custom-field-row button:hover {
    background: #fecaca !important;
}

/* Tier option hover */
.tier-option:hover {
    border-color: #6366f1 !important;
}

/* Mini Stamps in Preview */
.mini-stamps {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.mini-stamp {
    width: 24px;
    height: 24px;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #94a3b8;
    background: white;
}

.mini-stamp.filled {
    background: #22c55e;
    border-color: #22c55e;
    color: white;
}

/* Points Display Mini */
.points-display-mini {
    background: linear-gradient(135deg, #f59e0b 0%, #eab308 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
}

/* Membership Badge Mini */
.membership-badge-mini {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
}

/* ============================
   Step 5: Business & Contact Details
   ============================ */
.step5-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

/* Contact Information Section */
.contact-info-section {
    margin-top: 2rem;
}

.contact-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
}

.contact-section-desc {
    font-size: 0.85rem;
    color: #1f2937;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

/* Contact Pill Buttons */
.contact-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.contact-pill {
    padding: 0.45rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    background: transparent;
    color: #1f2937;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.contact-pill:hover {
    border-color: var(--primary-color);
    background: rgba(0, 255, 255, 0.08);
}

.contact-pill.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
    font-weight: 700;
}

/* Contact & Tappable Field Cards (shared layout) */
.contact-active-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-field-card,
.tappable-field-row {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.85rem;
    animation: fadeSlideDown 0.2s ease;
}

.tappable-field-row {
    margin-bottom: 0.75rem;
}

@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Two-column inputs: label + value */
.contact-field-card-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

@media (max-width: 480px) {
    .contact-field-card-inputs {
        grid-template-columns: 1fr;
    }
}

.contact-label-input {
    font-weight: 600;
    cursor: default;
}

/* Footer row: checkbox left, × right */
.contact-field-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.6rem;
}

/* Tappable checkbox */
.tappable-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    user-select: none;
}

.tappable-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #ef4444;
    cursor: pointer;
    flex-shrink: 0;
}

.tappable-checkbox span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1f2937;
}

/* × remove button (small, right side) */
.contact-remove-x {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 4px;
    transition: all 0.2s;
    line-height: 1;
    width: 24px;
    height: 24px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0;
    color: transparent;
}

.contact-remove-x::before,
.contact-remove-x::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 2px;
    background: #ef4444;
    border-radius: 1px;
    transition: background 0.2s;
}

.contact-remove-x::before {
    transform: rotate(45deg);
}

.contact-remove-x::after {
    transform: rotate(-45deg);
}

.contact-remove-x:hover {
    background: rgba(239, 68, 68, 0.15);
}

.contact-remove-x:hover::before,
.contact-remove-x:hover::after {
    background: #dc2626;
}

/* Remove button for additional questions & location rows */
.tappable-remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 4px;
    transition: all 0.2s;
    width: 28px;
    height: 28px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0;
    color: transparent;
}

.tappable-remove-btn::before,
.tappable-remove-btn::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 2px;
    background: #ef4444;
    border-radius: 1px;
    transition: background 0.2s;
}

.tappable-remove-btn::before {
    transform: rotate(45deg);
}

.tappable-remove-btn::after {
    transform: rotate(-45deg);
}

.tappable-remove-btn:hover {
    background: rgba(239, 68, 68, 0.15);
}

.tappable-remove-btn:hover::before,
.tappable-remove-btn:hover::after {
    background: #dc2626;
}

.detect-location-inline {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem;
    line-height: 1;
}

/* Tappable Custom Fields Section */
.tappable-fields-section {
    margin-top: 2rem;
}

.add-custom-field-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 0.5rem;
}

.add-custom-field-btn:hover {
    opacity: 0.85;
}

/* ============================
   Step 6: Customer Data Collection
   ============================ */
.add-question-btn,
.add-location-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 0.5rem;
}

.add-question-btn:hover,
.add-location-btn:hover {
    opacity: 0.85;
}

.info-callout {
    display: flex;
    gap: 0.75rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 1.25rem;
}

.info-callout-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.info-callout p,
.info-callout ul {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.6;
}

.info-callout strong {
    color: #1f2937;
}

.data-collection-group {
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.data-field-toggles {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.data-field-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: border-color 0.2s;
}

.data-field-row:hover {
    border-color: #93c5fd;
}

.data-field-label {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
}

/* Small toggle */
.toggle-switch.toggle-sm {
    width: 36px;
    height: 20px;
    flex-shrink: 0;
}

.toggle-switch.toggle-sm .toggle-slider::before {
    width: 16px;
    height: 16px;
    left: 2px;
    bottom: 2px;
}

.toggle-switch.toggle-sm input:checked + .toggle-slider::before {
    transform: translateX(16px);
}

.upgrade-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 0.5rem;
}

/* ============================
   Step 7: Location Notifications
   ============================ */
.location-disabled-msg {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 16px;
}

.location-disabled-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.location-disabled-msg h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.location-disabled-msg p {
    font-size: 0.9rem;
    color: #374151;
    margin-bottom: 1.25rem;
}

.enable-location-btn {
    padding: 0.65rem 1.5rem;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.enable-location-btn:hover {
    opacity: 0.85;
}

/* Location info callout */
.loc-info-callout {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
}

.loc-info-callout p {
    color: #374151;
}

/* Location notification row - light card */
.location-notification-row {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.loc-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.loc-row-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.loc-delete-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fee2e2;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.loc-delete-btn:hover {
    background: #fecaca;
}

.location-notification-row .input-group {
    margin-bottom: 1rem;
}

.location-notification-row .input-group:last-child {
    margin-bottom: 0;
}

.location-notification-row .input-group label {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.location-notification-row .form-input {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--text-dark);
}

.location-notification-row .form-input::placeholder {
    color: #94a3b8;
}

.location-notification-row .form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.1);
}

/* Location detect button inside address input */
.loc-detect-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem;
    line-height: 1;
    transition: transform 0.2s;
    z-index: 2;
}

.loc-detect-btn:hover {
    transform: translateY(-50%) scale(1.15);
}

/* Radius slider */
.loc-radius-display {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.35rem;
}

.loc-radius-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.location-notification-row .form-range {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.location-notification-row .form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.location-notification-row .form-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Location address suggestions dropdown */
.loc-address-suggestions {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-top: 0.25rem;
    max-height: 200px;
    overflow-y: auto;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    position: relative;
}

.loc-suggestion-item {
    padding: 0.625rem 0.875rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-dark);
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.loc-suggestion-item:last-child {
    border-bottom: none;
}

.loc-suggestion-item:hover {
    background: #f0f9ff;
}

.loc-suggestion-item div:last-child {
    color: #6b7280;
}
