@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Great+Vibes&display=swap');
/* Customer Flow CSS - For Get Started, Wishlist, and Order pages */

:root {
    --glass-blue: #2aa7ff;
    --glass-green: #16b187;
    --progress-bg: #e2e8f0;
    --progress-active: #2aa7ff;
}

input,
textarea,
select,
button,
::placeholder {
    font-family: inherit;
}

body.customer-flow {
    margin: 0;
    padding: 0;
    background:
        radial-gradient(1200px 800px at 10% -10%, var(--bg-grad-2), transparent 60%),
        radial-gradient(1200px 800px at 110% 110%, var(--bg-grad-3), transparent 60%),
        var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}

.flow-container {
    width: 100%;
    max-width: 800px;
    padding: 0 20px 60px;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress Bar */
.progress-stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    position: relative;
    max-width: 600px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.progress-stepper::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--progress-bg);
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
}

.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--progress-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--muted);
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.step.active .step-circle {
    border-color: var(--progress-active);
    color: var(--progress-active);
    box-shadow: 0 0 15px rgba(42, 167, 255, 0.3);
}

.step.completed .step-circle {
    background: var(--progress-active);
    border-color: var(--progress-active);
    color: white;
}

.step-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    text-align: center;
}

.step.active .step-label {
    color: var(--progress-active);
}

.qty-warning {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #b91c1c;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 12px;
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.step-time {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    opacity: 0.7;
    margin-top: 2px;
}

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

.flow-header h1 {
    font-size: 32px;
    font-weight: 900;
    color: var(--ink);
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.flow-header .subtitle {
    font-size: 16px;
    color: var(--muted);
    font-weight: 500;
    max-width: 500px;
    margin: 0 auto;
}

/* Benefit Items */
.benefit-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 32px 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--ink);
    font-weight: 600;
}

.benefit-icon {
    width: 24px;
    height: 24px;
    background: var(--glass-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

/* Reminder Note */
.reminder-note {
    background: #fff7ed;
    border: 1px solid #ffedd5;
    padding: 20px;
    border-radius: 12px;
    font-size: 14px;
    color: #9a3412;
    margin: 24px 0;
    line-height: 1.5;
}

/* Shared Components */
.info-box {
    background: white;
    border: 1px solid var(--border);
    border-left: 5px solid var(--glass-blue);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.info-box strong {
    display: block;
    margin-bottom: 4px;
    color: var(--glass-blue);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    font-weight: 800;
}

/* Referral Promo Section */
.referral-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 32px;
    border-radius: 22px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

.referral-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--glass-blue) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(20px);
}

.referral-card h3 {
    margin: 0 0 12px 0;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}

.referral-card p {
    margin: 0 0 24px 0;
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.85;
}

.radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.radio-option {
    position: relative;
}

.radio-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    color: #fff;
}

.radio-option input:checked+.radio-label {
    background: var(--glass-blue);
    border-color: var(--glass-blue);
    color: #fff;
    box-shadow: 0 8px 20px rgba(42, 167, 255, 0.3);
    transform: translateY(-2px);
}

.radio-group.outlined .radio-option input:checked+.radio-label {
    background: var(--glass-blue) !important;
    border-color: var(--glass-blue) !important;
    color: #fff !important;
}

.payment-method .payment-summary {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
    line-height: 1.4;
}

.payment-method .payment-description {
    display: none;
    font-size: 13px;
    color: var(--ink);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: left;
    line-height: 1.5;
}

.payment-method.selected .payment-description {
    display: block;
}

/* Custom File Upload */
.file-upload-wrapper {
    border: 2px dashed var(--border);
    border-radius: 18px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fcfdfe;
    margin-top: 8px;
}

.file-upload-wrapper:hover {
    border-color: var(--glass-blue);
    background: #f8fbff;
}

.file-upload-icon {
    width: 48px;
    height: 48px;
    background: #f0f7ff;
    color: var(--glass-blue);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

/* Wishlist Dynamic Entries */
.wishlist-entry {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.wishlist-entry .remove-entry-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--danger);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.wishlist-entry .remove-entry-btn:hover {
    opacity: 1;
}

.add-entry-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: white;
    border: 2px dashed var(--progress-active);
    color: var(--progress-active);
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.add-entry-btn:hover {
    background: rgba(42, 167, 255, 0.05);
    transform: translateY(-1px);
}

/* Order Page Specific Styles */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0;
}

.product-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    border-color: var(--glass-blue);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(42, 167, 255, 0.1);
}

.product-card.selected {
    border-color: var(--glass-blue);
    background: #f8fbff;
    box-shadow: 0 0 0 2px var(--glass-blue);
}

.product-card.selected::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--glass-blue);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
}

.product-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: var(--ink);
}

.product-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
}

.product-pill {
    display: inline-block;
    padding: 4px 12px;
    background: #f1f5f9;
    color: var(--muted);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
}

.product-card.selected .product-pill {
    background: var(--glass-blue);
    color: white;
}

/* Pricing Section */
.pricing-calculator {
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    margin: 32px 0;
}

.calculator-header {
    background: #f8fafc;
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.calculator-body {
    padding: 24px;
}

.quantity-input-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.quantity-input-group input {
    width: 120px;
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    border: 2px solid var(--glass-blue);
    color: var(--ink);
}

.profit-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 16px;
}

.profit-stat label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.profit-stat .value {
    font-size: 20px;
    font-weight: 900;
    color: var(--ink);
}

.profit-stat .value.highlight {
    color: var(--glass-green);
}

.profit-stat .value.red {
    color: #ef4444;
}

/* Payment Methods */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.payment-method {
    background: white;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.payment-method:hover:not(.disabled) {
    border-color: var(--glass-blue);
    background: #f8fbff;
}

.payment-method.selected {
    border-color: var(--glass-green);
    background: #f0fdf4;
    box-shadow: 0 0 0 2px var(--glass-green);
}

.payment-method.hidden {
    display: none;
}

.payment-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 12px;
    color: var(--muted);
    transition: color 0.2s;
}

.payment-method.selected .payment-icon {
    color: var(--glass-green);
}

.payment-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.payment-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--ink);
}

/* Legal Agreement */
.legal-agreement-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    height: 300px;
    overflow-y: auto;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 32px;
}

.legal-agreement-box p {
    margin-bottom: 16px;
}

.legal-agreement-box strong {
    color: var(--ink);
}

.dynamic-field {
    color: var(--glass-blue);
    font-weight: 700;
    border-bottom: 2px solid var(--glass-blue);
    padding: 0 2px;
}

/* Signature Pad */
.signature-section {
    margin-top: 32px;
}

.signature-pad-wrapper {
    background: white;
    border: 2px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    margin-bottom: 24px;
}

.signature-input {
    width: 100%;
    height: 120px;
    background: transparent;
    border: none;
    padding: 0 32px;
    font-family: 'Great Vibes', cursive;
    font-size: 64px;
    font-weight: 400;
    color: var(--glass-blue);
    text-align: center;
    outline: none;
    letter-spacing: 2px;
    /* transform: rotate(-2deg); Removed per user feedback */
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.05);
}

.signature-input::placeholder {
    font-family: inherit;
    font-size: 16px;
    opacity: 0.3;
    font-style: normal;
}

.signature-controls {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-clear {
    background: none;
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.final-summary {
    background: #0f172a;
    color: white;
    padding: 32px;
    border-radius: 20px;
    margin: 40px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.summary-row.total {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
    font-size: 20px;
    font-weight: 900;
}

.summary-row .label {
    opacity: 0.7;
    font-weight: 500;
}

.summary-row .val {
    font-weight: 800;
}

.summary-row .val.green {
    color: var(--glass-green);
}

/* Media Queries */
@media (max-width: 600px) {
    .radio-group:not(.outlined) {
        grid-template-columns: 1fr;
    }

    .flow-container {
        padding: 0 16px 40px;
    }

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

    .progress-stepper {
        gap: 8px;
    }

    .step {
        width: 80px;
    }

    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

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

    .product-grid {
        grid-template-columns: 1fr;
    }

    .profit-summary {
        grid-template-columns: 1fr 1fr;
    }

    .payment-grid {
        grid-template-columns: 1fr;
    }
}