/* ══════════════════════════════════════════════
   ZeroBra Returns Portal — Customer Styles
   World-class, production-ready design
   ══════════════════════════════════════════════ */

:root {
    --primary: #1a1a2e;
    --primary-light: #16213e;
    --accent: #e94560;
    --accent-hover: #d63851;
    --accent-light: rgba(233,69,96,0.08);
    --success: #2ed573;
    --success-light: rgba(46,213,115,0.1);
    --warning: #ffa502;
    --warning-light: rgba(255,165,2,0.1);
    --danger: #ff4757;
    --danger-light: rgba(255,71,87,0.1);
    --info: #0984e3;
    --bg: #f8f9fc;
    --card: #ffffff;
    --text: #1a1a2e;
    --text-secondary: #636e72;
    --text-muted: #b2bec3;
    --border: #e5e7eb;
    --border-light: #f0f0f0;
    --radius: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ══ Header ══ */
.header {
    background: var(--primary);
    color: white;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.header-inner {
    max-width: 1200px; width: 100%; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; }
.logo img { display: block; }
.logo-text { font-size: 20px; font-weight: 800; color: white; letter-spacing: -0.5px; }
.header-nav { display: flex; gap: 20px; }
.nav-link {
    color: rgba(255,255,255,0.65); font-size: 14px; font-weight: 500;
    text-decoration: none; transition: var(--transition);
}
.nav-link:hover { color: white; text-decoration: none; }

/* ══ Main ══ */
.main { flex: 1; max-width: 640px; width: 100%; margin: 0 auto; padding: 24px 16px 40px; }

/* ══ Stepper ══ */
.stepper {
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 32px; padding: 0 8px;
}
.stepper-step {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    position: relative; z-index: 1;
}
.stepper-circle {
    width: 36px; height: 36px; border-radius: 50%;
    background: white; border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: var(--text-muted);
    transition: var(--transition);
}
.stepper-step.active .stepper-circle {
    background: var(--accent); border-color: var(--accent); color: white;
    box-shadow: 0 0 0 4px var(--accent-light);
}
.stepper-step.completed .stepper-circle {
    background: var(--success); border-color: var(--success); color: white;
}
.stepper-step.completed .stepper-circle span { display: none; }
.stepper-step.completed .stepper-circle::after {
    content: '\2713'; font-size: 16px; font-weight: 700;
}
.stepper-label {
    font-size: 11px; font-weight: 600; color: var(--text-muted);
    white-space: nowrap; transition: var(--transition);
}
.stepper-step.active .stepper-label { color: var(--accent); }
.stepper-step.completed .stepper-label { color: var(--success); }
.stepper-line {
    flex: 1; height: 2px; background: var(--border);
    margin: 0 4px; margin-bottom: 22px; position: relative;
    min-width: 20px; max-width: 60px;
}
.stepper-line-fill {
    position: absolute; top: 0; left: 0; height: 100%;
    background: var(--success); width: 0; transition: width 0.4s ease;
}

/* ══ Steps ══ */
.step { display: none; }
.step.active { display: block; animation: stepIn 0.35s ease; }
@keyframes stepIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-card {
    background: var(--card); border-radius: var(--radius);
    padding: 32px; box-shadow: var(--shadow); margin-bottom: 20px;
    border: 1px solid var(--border-light);
}
.step-header { margin-bottom: 28px; }
.step-header h1, .step-header h2 {
    font-size: 22px; font-weight: 800; color: var(--primary);
    margin-bottom: 4px; letter-spacing: -0.3px;
}
.step-subtitle { color: var(--text-secondary); font-size: 14px; }

/* ══ Forms ══ */
.input-group { margin-bottom: 16px; }
.input-group label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--text); margin-bottom: 6px;
}
.req { color: var(--accent); }
.input-group input, .input-group select, .input-group textarea {
    width: 100%; padding: 11px 14px;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-size: 14px; font-family: var(--font); transition: var(--transition);
    background: white; color: var(--text);
}
.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}
.input-group input.has-error { border-color: var(--danger); }
.input-group input.has-error:focus { box-shadow: 0 0 0 3px var(--danger-light); }
.field-error {
    display: block; font-size: 12px; color: var(--danger);
    margin-top: 4px; min-height: 0;
}
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.form-grid .full-width { grid-column: 1 / -1; }

.divider {
    display: flex; align-items: center; margin: 20px 0;
    color: var(--text-muted); font-size: 12px; font-weight: 500;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider span { padding: 0 14px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ══ Buttons ══ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border: none; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600; font-family: var(--font);
    cursor: pointer; transition: var(--transition); text-decoration: none;
    line-height: 1.4;
}
.btn-primary {
    background: var(--accent); color: white;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(233,69,96,0.3); text-decoration: none; }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { background: var(--text-muted); cursor: not-allowed; transform: none; box-shadow: none; }
.btn-outline {
    background: white; color: var(--primary); border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); background: var(--bg); text-decoration: none; }
.btn-full { width: 100%; }
.btn-back {
    background: none; border: none; color: var(--text-secondary);
    font-size: 14px; font-weight: 500; cursor: pointer; padding: 0;
    margin-bottom: 20px; display: inline-flex; align-items: center; gap: 4px;
    font-family: var(--font); transition: var(--transition);
}
.btn-back:hover { color: var(--primary); }

/* ══ Track Section ══ */
.track-section {
    margin-top: 24px; padding-top: 20px;
    border-top: 1px solid var(--border); text-align: center;
}
.track-section > p { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }
.track-form { display: flex; gap: 8px; }
.track-form input {
    flex: 1; padding: 10px 14px; border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); font-size: 13px; font-family: var(--font);
}
.track-form input:focus { outline: none; border-color: var(--accent); }

/* ══ Policy Highlights ══ */
.policy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.policy-card {
    background: var(--card); border-radius: var(--radius-md); padding: 16px;
    display: flex; gap: 12px; align-items: center;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border-light);
    transition: var(--transition);
}
.policy-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.policy-num {
    min-width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 13px; flex-shrink: 0;
}
.policy-card strong { font-size: 13px; display: block; margin-bottom: 1px; }
.policy-card p { font-size: 11px; color: var(--text-secondary); line-height: 1.3; }

/* ══ Order Items ══ */
.order-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.order-item {
    display: flex; align-items: center; gap: 12px; padding: 12px;
    border: 2px solid var(--border-light); border-radius: var(--radius-md);
    cursor: pointer; transition: var(--transition); background: white;
}
.order-item:hover { border-color: var(--accent); }
.order-item.selected {
    border-color: var(--accent); background: var(--accent-light);
}
.order-item.disabled { opacity: 0.4; cursor: not-allowed; }
.item-checkbox {
    width: 24px; height: 24px; border-radius: 7px;
    border: 2px solid var(--border); display: flex;
    align-items: center; justify-content: center;
    flex-shrink: 0; transition: var(--transition);
}
.order-item.selected .item-checkbox {
    background: var(--accent); border-color: var(--accent);
}
.order-item.selected .item-checkbox::after {
    content: '\2713'; font-size: 14px; font-weight: 700; color: white;
}
.item-image {
    width: 56px; height: 56px; border-radius: 8px;
    background: var(--bg); object-fit: cover; flex-shrink: 0;
}
.item-details { flex: 1; min-width: 0; }
.item-title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-variant { font-size: 12px; color: var(--text-secondary); }
.item-qty-row { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.qty-label { font-size: 11px; color: var(--text-secondary); }
.qty-select {
    padding: 2px 6px; border: 1px solid var(--border); border-radius: 4px;
    font-size: 12px; font-family: var(--font); background: white;
}
.item-price { font-weight: 700; font-size: 15px; color: var(--primary); white-space: nowrap; }

.order-num-badge {
    background: var(--primary); color: white; padding: 2px 10px;
    border-radius: 6px; font-weight: 700; font-size: 13px;
}
.info-banner {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 12px 16px; background: #f0f7ff; border: 1px solid #bde0fe;
    border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 13px;
    color: #1a5276;
}
.info-icon {
    min-width: 20px; height: 20px; border-radius: 50%;
    background: var(--info); color: white; display: flex;
    align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; flex-shrink: 0;
}

/* ══ Reason Selection ══ */
.reason-block {
    background: var(--bg); border-radius: var(--radius-md);
    padding: 20px; margin-bottom: 16px;
    border: 1px solid var(--border-light);
}
.reason-block-title {
    font-weight: 700; font-size: 14px; color: var(--primary);
    margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.reason-block-img {
    width: 36px; height: 36px; border-radius: 6px; object-fit: cover;
}
.reason-options { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.reason-opt {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border: 1.5px solid transparent;
    border-radius: var(--radius-sm); cursor: pointer;
    transition: var(--transition); font-size: 14px; background: white;
}
.reason-opt:hover { border-color: var(--border); }
.reason-opt.selected { border-color: var(--accent); background: var(--accent-light); }
.reason-radio {
    width: 18px; height: 18px; border: 2px solid var(--border);
    border-radius: 50%; flex-shrink: 0; display: flex;
    align-items: center; justify-content: center; transition: var(--transition);
}
.reason-opt.selected .reason-radio { border-color: var(--accent); }
.reason-opt.selected .reason-radio::after {
    content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
}

.reason-note {
    margin-top: 10px;
}
.reason-note textarea {
    width: 100%; padding: 10px 12px; border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); font-size: 13px; font-family: var(--font);
    resize: vertical; min-height: 60px; transition: var(--transition);
}
.reason-note textarea:focus { outline: none; border-color: var(--accent); }

/* Photo Upload */
.photo-zone {
    margin-top: 12px; padding: 20px; border: 2px dashed var(--border);
    border-radius: var(--radius-sm); text-align: center;
    cursor: pointer; transition: var(--transition); background: white;
}
.photo-zone:hover, .photo-zone.drag-over {
    border-color: var(--accent); background: var(--accent-light);
}
.photo-zone-text { font-size: 13px; color: var(--text-secondary); }
.photo-zone-text strong { color: var(--accent); }

.photo-grid {
    display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px;
}
.photo-thumb {
    position: relative; width: 68px; height: 68px;
    border-radius: 8px; overflow: hidden; border: 1px solid var(--border);
}
.photo-thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.photo-remove {
    position: absolute; top: 2px; right: 2px;
    width: 20px; height: 20px; border-radius: 50%;
    background: rgba(0,0,0,0.6); color: white; border: none;
    font-size: 12px; cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.15s;
}
.photo-thumb:hover .photo-remove { opacity: 1; }

/* ══ Return Method ══ */
.method-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.method-card {
    cursor: pointer; position: relative;
}
.method-card input { display: none; }
.method-inner {
    padding: 20px 16px; border: 2px solid var(--border-light);
    border-radius: var(--radius-md); transition: var(--transition);
    text-align: center; background: white;
}
.method-card.selected .method-inner {
    border-color: var(--accent); background: var(--accent-light);
}
.method-icon { font-size: 32px; margin-bottom: 8px; }
.method-text strong { font-size: 14px; display: block; margin-bottom: 2px; }
.method-text p { font-size: 12px; color: var(--text-secondary); }
.method-price {
    margin-top: 8px; font-size: 16px; font-weight: 800; color: var(--primary);
}
.method-price small { font-size: 11px; font-weight: 500; color: var(--text-secondary); }
.method-price.free { color: var(--success); }

.section-title {
    font-size: 15px; font-weight: 700; color: var(--primary);
    margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border-light);
}

.notice {
    padding: 10px 14px; background: #f0f7ff; border-radius: var(--radius-sm);
    border-left: 3px solid var(--info); font-size: 13px; color: var(--info);
    margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}

.warehouse-card {
    padding: 20px; background: var(--bg); border-radius: var(--radius-md);
    border: 1px dashed var(--border); margin-bottom: 20px;
}
.warehouse-card strong { font-size: 15px; display: block; margin-bottom: 6px; }
.warehouse-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

.pincode-status { font-size: 12px; margin-top: -4px; margin-bottom: 12px; padding: 4px 0; }
.pincode-status.ok { color: var(--success); }
.pincode-status.error { color: var(--danger); }

/* ══ Review ══ */
.review-items { margin-bottom: 20px; }
.review-item {
    display: flex; gap: 12px; padding: 14px 0;
    border-bottom: 1px solid var(--border-light); align-items: flex-start;
}
.review-item:last-child { border-bottom: none; }
.review-item-img {
    width: 48px; height: 48px; border-radius: 8px;
    object-fit: cover; background: var(--bg); flex-shrink: 0;
}
.review-item-info { flex: 1; }
.review-item-title { font-weight: 600; font-size: 14px; }
.review-item-meta { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.review-item-reason { font-size: 12px; color: var(--accent); margin-top: 3px; font-weight: 500; }
.review-method-text { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }

.refund-summary {
    background: var(--bg); border-radius: var(--radius-md);
    padding: 20px; margin-bottom: 20px; border: 1px solid var(--border-light);
}
.refund-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; }
.refund-row.fee { color: var(--text-secondary); font-size: 13px; }
.refund-row.total {
    border-top: 2px solid var(--border); margin-top: 8px; padding-top: 12px;
    font-weight: 800; font-size: 17px; color: var(--primary);
}
.refund-note {
    margin-top: 12px; padding: 10px 14px; background: var(--warning-light);
    border-radius: var(--radius-sm); font-size: 12px; color: #7a6b2e; line-height: 1.5;
}
.refund-method {
    margin-top: 8px; font-size: 12px; color: var(--text-muted); text-align: center;
}

.review-section { margin-bottom: 8px; }

.terms-check { margin-bottom: 16px; }
.terms-check label {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13px; color: var(--text-secondary); cursor: pointer; line-height: 1.5;
}
.terms-check input { margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }

/* ══ Success ══ */
.success-card { text-align: center; padding: 48px 32px; }
.success-check { margin-bottom: 20px; }
.success-svg { width: 72px; height: 72px; }
.success-circle {
    stroke-dasharray: 166; stroke-dashoffset: 166;
    animation: strokeDraw 0.6s ease forwards;
}
.success-tick {
    stroke-dasharray: 48; stroke-dashoffset: 48;
    animation: strokeDraw 0.4s ease 0.4s forwards;
}
@keyframes strokeDraw { to { stroke-dashoffset: 0; } }

.success-id {
    font-size: 18px; font-weight: 800; color: var(--primary);
    margin: 8px 0 24px; letter-spacing: -0.3px;
}

.next-steps {
    text-align: left; background: var(--bg); border-radius: var(--radius-md);
    padding: 20px; margin-bottom: 28px;
}
.next-steps h3 { font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.ns-timeline { position: relative; }
.ns-item {
    display: flex; gap: 14px; position: relative;
    padding-bottom: 18px; padding-left: 4px;
}
.ns-item:last-child { padding-bottom: 0; }
.ns-item::before {
    content: ''; position: absolute; left: 9px; top: 20px;
    width: 2px; height: calc(100% - 12px); background: var(--border);
}
.ns-item:last-child::before { display: none; }
.ns-dot {
    width: 20px; height: 20px; border-radius: 50%;
    background: white; border: 2px solid var(--border);
    flex-shrink: 0; position: relative; z-index: 1;
}
.ns-item strong { font-size: 13px; display: block; }
.ns-item p { font-size: 12px; color: var(--text-secondary); }

.success-actions {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ══ Toast Notifications ══ */
.toast-container {
    position: fixed; top: 72px; right: 16px; z-index: 9999;
    display: flex; flex-direction: column; gap: 8px;
    pointer-events: none;
}
.toast {
    padding: 12px 20px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500; color: white;
    box-shadow: var(--shadow-lg); pointer-events: auto;
    animation: toastIn 0.3s ease; max-width: 360px;
    display: flex; align-items: center; gap: 10px;
}
.toast.removing { animation: toastOut 0.25s ease forwards; }
.toast.success { background: #27ae60; }
.toast.error { background: var(--danger); }
.toast.info { background: var(--info); }
.toast.warning { background: #e67e22; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(40px); } }

/* ══ Loading ══ */
.loading-overlay {
    position: fixed; inset: 0; background: rgba(255,255,255,0.88);
    display: flex; align-items: center; justify-content: center;
    z-index: 10000; backdrop-filter: blur(4px);
}
.loading-content { text-align: center; }
.loading-content p { font-size: 14px; color: var(--text-secondary); margin-top: 12px; }
.spinner {
    width: 40px; height: 40px; margin: 0 auto;
    border: 3px solid var(--border); border-top-color: var(--accent);
    border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══ Confirmation Modal ══ */
.confirm-modal {
    position: fixed; inset: 0; z-index: 9000;
    display: flex; align-items: center; justify-content: center;
}
.confirm-backdrop {
    position: absolute; inset: 0; background: rgba(0,0,0,0.45);
    backdrop-filter: blur(3px); animation: fadeIn 0.2s;
}
.confirm-box {
    position: relative; background: white; border-radius: var(--radius);
    padding: 36px; max-width: 380px; width: 90%;
    box-shadow: var(--shadow-lg); text-align: center;
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.confirm-icon { margin-bottom: 16px; }
.confirm-box h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.confirm-box p { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }
.confirm-actions { display: flex; gap: 10px; justify-content: center; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* ══ Footer ══ */
.footer {
    text-align: center; padding: 24px; font-size: 12px;
    color: var(--text-muted); margin-top: auto;
}
.footer a { color: var(--accent); }

/* ══ Responsive ══ */
@media (max-width: 640px) {
    .step-card { padding: 20px; }
    .step-header h1, .step-header h2 { font-size: 20px; }
    .policy-grid { grid-template-columns: 1fr; }
    .input-row, .form-grid { grid-template-columns: 1fr; }
    .method-cards { grid-template-columns: 1fr; }
    .success-actions { flex-direction: column; align-items: stretch; }
    .track-form { flex-direction: column; }
    .stepper-label { font-size: 9px; }
    .stepper-circle { width: 30px; height: 30px; font-size: 11px; }
    .toast-container { right: 8px; left: 8px; }
    .toast { max-width: 100%; }
}
@media (max-width: 400px) {
    .main { padding: 12px 8px 32px; }
    .step-card { padding: 16px; }
    .header { padding: 0 12px; }
    .stepper { margin-bottom: 20px; }
}
@media (min-width: 641px) and (max-width: 900px) {
    .main { max-width: 580px; }
}

/* ══ Print ══ */
@media print {
    .header, .footer, .stepper, .btn, .toast-container, .loading-overlay { display: none !important; }
    .step-card { box-shadow: none; border: 1px solid #ddd; }
    body { background: white; }
}
