/**
 * ReturnFlow Pro - Frontend Return Portal Styles
 * Version: 1.0.0
 */

/* ===== Portal Wrapper ===== */
.rfp-portal {
        max-width: 800px;
        margin: 40px auto;
        padding: 0 20px;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
        color: #1e293b;
}

.rfp-portal h2 {
        font-size: 22px;
        font-weight: 700;
        color: #0f172a;
        margin: 0 0 24px;
        text-align: center;
}

/* ===== Step Indicator ===== */
.rfp-step-indicator {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 32px;
        padding: 0 10px;
}

.rfp-step {
        display: flex;
        align-items: center;
        gap: 0;
}

.rfp-step-circle {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: 700;
        border: 2px solid #cbd5e1;
        color: #94a3b8;
        background: #fff;
        transition: all 0.3s ease;
        flex-shrink: 0;
}

.rfp-step.upcoming .rfp-step-circle {
        background: #f8fafc;
        border-color: #cbd5e1;
        color: #94a3b8;
}

.rfp-step.active .rfp-step-circle {
        background: #2563eb;
        border-color: #2563eb;
        color: #fff;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.rfp-step.completed .rfp-step-circle {
        background: #059669;
        border-color: #059669;
        color: #fff;
}

.rfp-step-label {
        font-size: 12px;
        color: #94a3b8;
        margin-top: 6px;
        text-align: center;
        white-space: nowrap;
}

.rfp-step.active .rfp-step-label { color: #2563eb; font-weight: 600; }
.rfp-step.completed .rfp-step-label { color: #059669; }

.rfp-step-line {
        width: 48px;
        height: 2px;
        background: #e2e8f0;
        margin: 0 4px;
        align-self: flex-start;
        margin-top: 17px;
        transition: background 0.3s ease;
}

.rfp-step-line.completed { background: #059669; }

/* ===== Step Content ===== */
.rfp-step-content {
        display: none;
        padding: 24px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
        animation: rfpFadeIn 0.3s ease;
}

.rfp-step-content.active { display: block; }

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

/* ===== Order Selector ===== */
.rfp-order-selector {
        margin-bottom: 20px;
}

.rfp-order-selector label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        color: #374151;
        margin-bottom: 8px;
}

.rfp-order-selector select {
        width: 100%;
        padding: 10px 14px;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        font-size: 14px;
        background: #fff;
        cursor: pointer;
        transition: border-color 0.2s;
}

.rfp-order-selector select:focus {
        outline: none;
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ===== Items List ===== */
.rfp-items-list {
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        overflow: hidden;
}

.rfp-item-row {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px 16px;
        border-bottom: 1px solid #f1f5f9;
        transition: background 0.15s;
}

.rfp-item-row:last-child { border-bottom: none; }
.rfp-item-row:hover { background: #f8fafc; }

.rfp-item-row .rfp-item-checkbox {
        flex-shrink: 0;
        width: 18px;
        height: 18px;
        accent-color: #2563eb;
}

.rfp-item-row .rfp-item-image {
        width: 52px;
        height: 52px;
        border-radius: 8px;
        object-fit: cover;
        border: 1px solid #e2e8f0;
        flex-shrink: 0;
}

.rfp-item-row .rfp-item-details { flex: 1; min-width: 0; }

.rfp-item-row .rfp-item-name {
        font-size: 14px;
        font-weight: 600;
        color: #1e293b;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
}

.rfp-item-row .rfp-item-sku {
        font-size: 12px;
        color: #94a3b8;
}

.rfp-item-row .rfp-item-qty {
        display: flex;
        align-items: center;
        gap: 6px;
}

.rfp-item-row .rfp-item-qty input {
        width: 50px;
        text-align: center;
        padding: 4px 6px;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        font-size: 13px;
}

.rfp-item-row .rfp-item-price {
        font-size: 14px;
        font-weight: 600;
        color: #0f172a;
        flex-shrink: 0;
        min-width: 70px;
        text-align: right;
}

/* ===== Return Type ===== */
.rfp-return-type {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 20px;
}

.rfp-return-type-option {
        position: relative;
}

.rfp-return-type-option input { position: absolute; opacity: 0; }

.rfp-return-type-option label {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 16px 12px;
        border: 2px solid #e2e8f0;
        border-radius: 10px;
        cursor: pointer;
        text-align: center;
        transition: all 0.2s;
}

.rfp-return-type-option label:hover { border-color: #93c5fd; }

.rfp-return-type-option input:checked + label {
        border-color: #2563eb;
        background: #eff6ff;
}

.rfp-return-type-option .rfp-type-icon { font-size: 24px; }
.rfp-return-type-option .rfp-type-label { font-size: 13px; font-weight: 600; color: #1e293b; }
.rfp-return-type-option .rfp-type-desc { font-size: 11px; color: #64748b; }

/* ===== Reason Dropdown ===== */
.rfp-reason-dropdown {
        margin-bottom: 20px;
}

.rfp-reason-dropdown label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        color: #374151;
        margin-bottom: 8px;
}

.rfp-reason-dropdown select {
        width: 100%;
        padding: 10px 14px;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        font-size: 14px;
}

.rfp-reason-dropdown select:focus {
        outline: none;
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ===== File Upload ===== */
.rfp-file-upload {
        border: 2px dashed #cbd5e1;
        border-radius: 10px;
        padding: 32px;
        text-align: center;
        cursor: pointer;
        transition: border-color 0.2s, background 0.2s;
        margin-bottom: 20px;
}

.rfp-file-upload:hover,
.rfp-file-upload.dragover {
        border-color: #2563eb;
        background: #eff6ff;
}

.rfp-file-upload .rfp-upload-icon { font-size: 32px; color: #94a3b8; margin-bottom: 8px; }
.rfp-file-upload .rfp-upload-text { font-size: 14px; color: #64748b; }
.rfp-file-upload .rfp-upload-hint { font-size: 12px; color: #94a3b8; margin-top: 4px; }

.rfp-file-previews {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 12px;
}

.rfp-file-preview {
        position: relative;
        width: 72px;
        height: 72px;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #e2e8f0;
}

.rfp-file-preview img { width: 100%; height: 100%; object-fit: cover; }

.rfp-file-preview .rfp-remove-file {
        position: absolute;
        top: 2px;
        right: 2px;
        width: 20px;
        height: 20px;
        background: rgba(220, 38, 38, 0.9);
        color: #fff;
        border: none;
        border-radius: 50%;
        font-size: 12px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
}

/* ===== Exchange Widget ===== */
.rfp-exchange-widget {
        display: flex;
        gap: 16px;
        align-items: stretch;
        margin-bottom: 20px;
}

.rfp-comparison-card {
        flex: 1;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 16px;
        text-align: center;
        background: #fff;
}

.rfp-comparison-card .rfp-compare-image {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 8px;
        margin: 0 auto 10px;
}

.rfp-comparison-card .rfp-compare-name {
        font-size: 14px;
        font-weight: 600;
        color: #1e293b;
        margin-bottom: 4px;
}

.rfp-comparison-card .rfp-compare-price {
        font-size: 16px;
        font-weight: 700;
        color: #0f172a;
}

.rfp-comparison-card .rfp-compare-attrs {
        font-size: 12px;
        color: #64748b;
        margin-top: 6px;
}

.rfp-comparison-card.original { background: #fef3c7; border-color: #fbbf24; }

.rfp-price-difference {
        text-align: center;
        font-size: 14px;
        font-weight: 700;
        padding: 8px 16px;
        border-radius: 8px;
        margin-bottom: 16px;
}

.rfp-price-difference.positive { background: #fef3c7; color: #92400e; }
.rfp-price-difference.negative { background: #d1fae5; color: #065f46; }

/* ===== Bundle Items ===== */
.rfp-bundle-items {
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 12px;
        background: #f8fafc;
}

.rfp-bundle-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 0;
        border-bottom: 1px solid #e2e8f0;
        font-size: 13px;
}

.rfp-bundle-item:last-child { border-bottom: none; }

/* ===== Countdown ===== */
.rfp-countdown {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        background: #fef3c7;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        color: #92400e;
}

.rfp-countdown .rfp-countdown-segment {
        display: flex;
        flex-direction: column;
        align-items: center;
        line-height: 1.2;
}

.rfp-countdown .rfp-countdown-value { font-size: 18px; font-weight: 700; }
.rfp-countdown .rfp-countdown-unit { font-size: 10px; color: #a16207; text-transform: uppercase; }

.rfp-countdown.expired { background: #fee2e2; color: #991b1b; }

/* ===== Tracking Pipeline ===== */
.rfp-tracking-pipeline {
        display: flex;
        align-items: center;
        margin: 20px 0;
        background: #f1f5f9;
        border-radius: 999px;
        height: 8px;
        overflow: hidden;
}

.rfp-tracking-pipeline .rfp-pipeline-fill {
        height: 100%;
        border-radius: 999px;
        background: linear-gradient(90deg, #2563eb, #059669);
        transition: width 0.6s ease;
}

.rfp-tracking-steps {
        display: flex;
        justify-content: space-between;
        margin-bottom: 4px;
        font-size: 12px;
        color: #64748b;
}

.rfp-tracking-steps .completed { color: #059669; font-weight: 600; }
.rfp-tracking-steps .current { color: #2563eb; font-weight: 600; }

/* ===== Activity Timeline ===== */
.rfp-activity-timeline {
        position: relative;
        padding-left: 32px;
}

.rfp-activity-timeline::before {
        content: "";
        position: absolute;
        left: 11px;
        top: 4px;
        bottom: 4px;
        width: 2px;
        background: #e2e8f0;
}

.rfp-activity-item {
        position: relative;
        padding-bottom: 18px;
}

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

.rfp-activity-item::before {
        content: attr(data-icon);
        position: absolute;
        left: -30px;
        top: 0;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #f1f5f9;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        border: 2px solid #fff;
        box-shadow: 0 0 0 1px #e2e8f0;
}

.rfp-activity-item .rfp-activity-time {
        font-size: 11px;
        color: #94a3b8;
}

.rfp-activity-item .rfp-activity-text {
        font-size: 13px;
        color: #334155;
}

/* ===== Buttons ===== */
.rfp-btn-primary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 12px 28px;
        background: #2563eb;
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s, transform 0.1s;
        text-decoration: none;
}

.rfp-btn-primary:hover { background: #1d4ed8; }
.rfp-btn-primary:active { transform: scale(0.98); }
.rfp-btn-primary:disabled { background: #93c5fd; cursor: not-allowed; }

.rfp-btn-secondary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 12px 28px;
        background: #f1f5f9;
        color: #475569;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s;
        text-decoration: none;
}

.rfp-btn-secondary:hover { background: #e2e8f0; }

.rfp-btn-success {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 12px 28px;
        background: #059669;
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s;
        text-decoration: none;
}

.rfp-btn-success:hover { background: #047857; }

.rfp-btn-danger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 12px 28px;
        background: #dc2626;
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s;
        text-decoration: none;
}

.rfp-btn-danger:hover { background: #b91c1c; }

/* ===== Navigation Footer ===== */
.rfp-step-nav {
        display: flex;
        justify-content: space-between;
        margin-top: 24px;
        padding-top: 20px;
        border-top: 1px solid #f1f5f9;
}

/* ===== Dual Action Buttons (Refund / Exchange) ===== */
.rfp-action-buttons {
        display: flex;
        gap: 16px;
        margin: 24px 0;
}

.rfp-action-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 20px 16px;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        background: #fff;
        cursor: pointer;
        transition: all 0.25s ease;
        text-decoration: none;
        text-align: center;
}

.rfp-action-btn:hover {
        border-color: #93c5fd;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
        transform: translateY(-2px);
}

.rfp-action-btn--refund:hover {
        border-color: #f87171;
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.rfp-action-btn--exchange:hover {
        border-color: #34d399;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.rfp-action-btn__icon {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
}

.rfp-action-btn--refund .rfp-action-btn__icon {
        background: #fef2f2;
        color: #dc2626;
}

.rfp-action-btn--exchange .rfp-action-btn__icon {
        background: #ecfdf5;
        color: #059669;
}

.rfp-action-btn__title {
        font-size: 16px;
        font-weight: 700;
        color: #1e293b;
}

.rfp-action-btn__desc {
        font-size: 12px;
        color: #64748b;
        line-height: 1.4;
}

/* ===== Payment Method Selector ===== */
.rfp-payment-methods {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin: 16px 0;
}

.rfp-payment-method {
        position: relative;
}

.rfp-payment-method input[type="radio"] {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
}

.rfp-payment-method label {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        border: 2px solid #e2e8f0;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.2s ease;
        background: #fff;
}

.rfp-payment-method label:hover {
        border-color: #93c5fd;
        background: #f8fafc;
}

.rfp-payment-method input[type="radio"]:checked + label {
        border-color: #2563eb;
        background: #eff6ff;
}

.rfp-payment-method__radio {
        width: 20px;
        height: 20px;
        border: 2px solid #cbd5e1;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: border-color 0.2s;
}

.rfp-payment-method input[type="radio"]:checked + label .rfp-payment-method__radio {
        border-color: #2563eb;
}

.rfp-payment-method input[type="radio"]:checked + label .rfp-payment-method__radio::after {
        content: "";
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #2563eb;
}

.rfp-payment-method__icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        flex-shrink: 0;
}

.rfp-payment-method--online .rfp-payment-method__icon {
        background: #dbeafe;
        color: #2563eb;
}

.rfp-payment-method--cheque .rfp-payment-method__icon {
        background: #fef3c7;
        color: #92400e;
}

.rfp-payment-method--wallet .rfp-payment-method__icon {
        background: #d1fae5;
        color: #065f46;
}

.rfp-payment-method__info {
        flex: 1;
}

.rfp-payment-method__name {
        font-size: 14px;
        font-weight: 600;
        color: #1e293b;
}

.rfp-payment-method__desc {
        font-size: 12px;
        color: #64748b;
        margin-top: 2px;
}

/* ===== Exchange Product Grid ===== */
.rfp-exchange-products {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
        margin: 16px 0;
}

.rfp-exchange-product {
        border: 2px solid #e2e8f0;
        border-radius: 10px;
        overflow: hidden;
        cursor: pointer;
        transition: all 0.25s ease;
        background: #fff;
        position: relative;
}

.rfp-exchange-product:hover {
        border-color: #93c5fd;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.rfp-exchange-product.selected {
        border-color: #2563eb;
        background: #eff6ff;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.rfp-exchange-product__check {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #2563eb;
        color: #fff;
        display: none;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: 700;
        z-index: 2;
}

.rfp-exchange-product.selected .rfp-exchange-product__check {
        display: flex;
}

.rfp-exchange-product__image {
        width: 100%;
        height: 140px;
        object-fit: cover;
        border-bottom: 1px solid #e2e8f0;
        background: #f8fafc;
}

.rfp-exchange-product__image-placeholder {
        width: 100%;
        height: 140px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f1f5f9;
        border-bottom: 1px solid #e2e8f0;
        color: #94a3b8;
        font-size: 32px;
}

.rfp-exchange-product__details {
        padding: 12px;
}

.rfp-exchange-product__name {
        font-size: 13px;
        font-weight: 600;
        color: #1e293b;
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
}

.rfp-exchange-product__price {
        font-size: 15px;
        font-weight: 700;
        color: #0f172a;
        margin-bottom: 6px;
}

.rfp-exchange-product__diff {
        font-size: 12px;
        font-weight: 600;
        padding: 4px 8px;
        border-radius: 6px;
        display: inline-block;
}

.rfp-exchange-product__diff--pay {
        background: #fef3c7;
        color: #92400e;
}

.rfp-exchange-product__diff--credit {
        background: #d1fae5;
        color: #065f46;
}

.rfp-exchange-product__diff--even {
        background: #eff6ff;
        color: #1e40af;
}

.rfp-exchange-product__attributes {
        font-size: 11px;
        color: #64748b;
        margin-top: 4px;
}

/* ===== Exchange Price Summary ===== */
.rfp-exchange-summary {
        border: 2px solid #e2e8f0;
        border-radius: 10px;
        padding: 16px 20px;
        margin: 16px 0;
        background: #f8fafc;
}

.rfp-exchange-summary.selected {
        border-color: #2563eb;
        background: #eff6ff;
}

.rfp-exchange-summary__title {
        font-size: 14px;
        font-weight: 700;
        color: #1e293b;
        margin-bottom: 12px;
}

.rfp-exchange-summary__row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        font-size: 13px;
}

.rfp-exchange-summary__label {
        color: #64748b;
}

.rfp-exchange-summary__value {
        font-weight: 600;
        color: #1e293b;
}

.rfp-exchange-summary__divider {
        border-top: 1px dashed #cbd5e1;
        margin: 8px 0;
}

.rfp-exchange-summary__total {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        font-size: 15px;
        font-weight: 700;
}

.rfp-exchange-summary__total--pay .rfp-exchange-summary__value {
        color: #dc2626;
}

.rfp-exchange-summary__total--credit .rfp-exchange-summary__value {
        color: #059669;
}

.rfp-exchange-summary__total--even .rfp-exchange-summary__value {
        color: #2563eb;
}

.rfp-exchange-summary__note {
        font-size: 12px;
        color: #64748b;
        margin-top: 8px;
        padding: 8px 12px;
        background: #fff;
        border-radius: 6px;
        border: 1px solid #e2e8f0;
}

/* ===== Exchange Product Loading ===== */
.rfp-exchange-loading {
        text-align: center;
        padding: 40px 20px;
        color: #64748b;
}

.rfp-exchange-loading__spinner {
        width: 40px;
        height: 40px;
        border: 3px solid #e2e8f0;
        border-top-color: #2563eb;
        border-radius: 50%;
        margin: 0 auto 12px;
        animation: rfp-spin 0.8s linear infinite;
}

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

.rfp-exchange-loading__text {
        font-size: 14px;
}

/* ===== Refund/Exchange/Return Form Wrappers ===== */
.rfp-refund-form-wrapper,
.rfp-exchange-form-wrapper,
.rfp-return-form-wrapper {
        max-width: 800px;
        margin: 0 auto;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
        color: #1e293b;
}

.rfp-refund-form-wrapper h3,
.rfp-exchange-form-wrapper h3,
.rfp-return-form-wrapper h3 {
        font-size: 22px;
        font-weight: 700;
        color: #0f172a;
        margin: 0 0 24px;
        text-align: center;
}

/* ===== Form Title ===== */
.rfp-form-title {
        font-size: 22px;
        font-weight: 700;
        color: #0f172a;
        margin: 0 0 24px;
        text-align: center;
}

/* ===== Form Sections (Single-Page) ===== */
.rfp-form-section {
        padding: 20px 24px;
        margin-bottom: 20px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.rfp-section-title {
        font-size: 16px;
        font-weight: 700;
        color: #0f172a;
        margin: 0 0 16px;
        padding-bottom: 10px;
        border-bottom: 2px solid #eff6ff;
}

/* ===== Form Submit Area ===== */
.rfp-form-submit {
        text-align: center;
        padding: 28px 0 8px;
        margin-top: 8px;
}

.rfp-form-submit .rfp-btn-submit {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 14px 40px;
        background: #059669;
        color: #fff;
        border: none;
        border-radius: 10px;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s ease;
        text-decoration: none;
        min-width: 220px;
}

.rfp-form-submit .rfp-btn-submit:hover {
        background: #047857;
        box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

.rfp-form-submit .rfp-btn-submit:active {
        transform: scale(0.98);
}

.rfp-form-submit .rfp-btn-submit:disabled {
        background: #6ee7b7;
        cursor: not-allowed;
        box-shadow: none;
}

.rfp-field-group {
        margin-bottom: 20px;
}

.rfp-field-group label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        color: #374151;
        margin-bottom: 6px;
}

.rfp-select {
        width: 100%;
        padding: 10px 14px;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        font-size: 14px;
        background: #fff;
        cursor: pointer;
        transition: border-color 0.2s;
}

.rfp-select:focus {
        outline: none;
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.rfp-textarea {
        width: 100%;
        padding: 10px 14px;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        font-size: 14px;
        resize: vertical;
        min-height: 80px;
}

.rfp-textarea:focus {
        outline: none;
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.rfp-field-description {
        font-size: 12px;
        color: #94a3b8;
        margin-top: 4px;
}

.rfp-radio-label {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        font-size: 14px;
}

.rfp-radio {
        accent-color: #2563eb;
        width: 18px;
        height: 18px;
}

.rfp-item-label {
        display: flex;
        align-items: center;
        gap: 12px;
        cursor: pointer;
        padding: 12px 16px;
        border-bottom: 1px solid #f1f5f9;
        transition: background 0.15s;
}

.rfp-item-label:hover {
        background: #f8fafc;
}

.rfp-item-thumb {
        width: 48px;
        height: 48px;
        border-radius: 8px;
        object-fit: cover;
        border: 1px solid #e2e8f0;
        flex-shrink: 0;
}

.rfp-item-name {
        font-size: 14px;
        font-weight: 600;
        color: #1e293b;
}

.rfp-item-attrs {
        font-size: 12px;
        color: #64748b;
}

.rfp-item-price {
        font-size: 14px;
        font-weight: 600;
        color: #0f172a;
        margin-left: auto;
}

.rfp-item-qty {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
}

.rfp-qty-input {
        width: 50px;
        text-align: center;
        padding: 4px 6px;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        font-size: 13px;
}

.rfp-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 10px 24px;
        border: none;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        text-decoration: none;
}

.rfp-btn-next,
.rfp-btn-submit {
        background: #2563eb;
        color: #fff;
}

.rfp-btn-next:hover,
.rfp-btn-submit:hover {
        background: #1d4ed8;
}

.rfp-btn-back {
        background: #f1f5f9;
        color: #475569;
        border: 1px solid #d1d5db;
}

.rfp-btn-back:hover {
        background: #e2e8f0;
}

.rfp-form-navigation {
        display: flex;
        justify-content: space-between;
        margin-top: 24px;
        padding-top: 20px;
        border-top: 1px solid #f1f5f9;
        gap: 12px;
}

.rfp-loading {
        text-align: center;
        padding: 20px;
        color: #94a3b8;
        font-size: 14px;
}

/* ===== Success Message ===== */
.rfp-success-message {
        text-align: center;
        padding: 40px 20px;
}

.rfp-success-message__icon {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        background: #d1fae5;
        color: #059669;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 16px;
        font-size: 28px;
}

.rfp-success-message__title {
        font-size: 20px;
        font-weight: 700;
        color: #059669;
        margin-bottom: 8px;
}

.rfp-success-message__text {
        font-size: 14px;
        color: #64748b;
        margin-bottom: 4px;
}

.rfp-success-message__id {
        font-size: 14px;
        font-weight: 600;
        color: #1e293b;
}

/* ===== No Products Message ===== */
.rfp-exchange-empty {
        text-align: center;
        padding: 40px 20px;
        color: #64748b;
}

.rfp-exchange-empty__icon {
        font-size: 48px;
        margin-bottom: 12px;
        color: #94a3b8;
}

.rfp-exchange-empty__text {
        font-size: 14px;
}

/* ===== Item Meta (Qty + Condition) ===== */
.rfp-item-meta {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 8px 16px 12px 16px;
        border-top: 1px solid #f1f5f9;
}

.rfp-item-qty-group {
        display: flex;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
}

.rfp-item-order-qty {
        font-size: 13px;
        color: #64748b;
}

.rfp-item-order-qty strong {
        color: #1e293b;
        font-weight: 700;
}

.rfp-item-refund-qty {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        color: #374151;
        font-weight: 600;
}

.rfp-item-refund-qty .rfp-qty-input {
        width: 52px;
        text-align: center;
        padding: 4px 6px;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        font-size: 13px;
}

.rfp-item-condition {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
}

.rfp-item-condition-label {
        font-size: 13px;
        color: #374151;
        font-weight: 600;
}

.rfp-condition-radio {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 13px;
        color: #475569;
        cursor: pointer;
}

.rfp-condition-radio .rfp-radio {
        width: 16px;
        height: 16px;
        accent-color: #2563eb;
}

.rfp-condition-radio span {
        font-weight: 500;
}

/* ===== Upload Preview Container ===== */
.rfp-upload-preview {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 12px;
}

/* ===== Order Page Action Section ===== */
.rfp-order-actions {
        margin: 24px 0;
        padding: 24px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

.rfp-order-actions-title {
        font-size: 18px;
        font-weight: 700;
        color: #0f172a;
        margin: 0 0 16px;
        text-align: center;
}

.rfp-order-actions .rfp-action-buttons {
        margin: 0 0 0 0;
}

.rfp-order-actions .rfp-refund-form-wrapper,
.rfp-order-actions .rfp-exchange-form-wrapper,
.rfp-order-actions .rfp-return-form-wrapper {
        margin-top: 20px;
}

.rfp-existing-request-notice {
        font-size: 14px;
        color: #64748b;
        margin: 0 0 8px;
        text-align: center;
}

.rfp-status-badge {
        display: inline-block;
        padding: 4px 14px;
        border-radius: 12px;
        font-size: 13px;
        font-weight: 600;
        color: #fff;
        text-align: center;
}

.rfp-status-created { background: #f59e0b; }
.rfp-status-review { background: #2563eb; }
.rfp-status-in_review { background: #2563eb; }
.rfp-status-approved { background: #7c3aed; }
.rfp-status-processing { background: #059669; }
.rfp-status-resolved { background: #689b0e; }
.rfp-status-rejected { background: #dc2626; }

/* ===== Responsive ===== */
@media (max-width: 600px) {
        .rfp-portal { margin: 20px auto; padding: 0 12px; }
        .rfp-step-line { width: 20px; }
        .rfp-step-circle { width: 30px; height: 30px; font-size: 12px; }
        .rfp-step-label { font-size: 10px; }
        .rfp-return-type { grid-template-columns: 1fr; }
        .rfp-exchange-widget { flex-direction: column; }
        .rfp-item-row { flex-wrap: wrap; }
        .rfp-item-row .rfp-item-price { min-width: auto; }
        .rfp-btn-primary,
        .rfp-btn-secondary,
        .rfp-btn-success,
        .rfp-btn-danger { width: 100%; justify-content: center; }
        .rfp-step-nav { flex-direction: column; gap: 10px; }
        .rfp-action-buttons { flex-direction: column; }
        .rfp-exchange-products { grid-template-columns: 1fr; }
        .rfp-form-navigation { flex-direction: column; }
        .rfp-form-navigation .rfp-btn { width: 100%; }
        .rfp-item-qty-group { flex-direction: column; gap: 6px; align-items: flex-start; }
        .rfp-item-condition { flex-direction: column; gap: 6px; align-items: flex-start; }
        .rfp-form-section { padding: 16px; }
        .rfp-form-submit .rfp-btn-submit { width: 100%; min-width: auto; }
}
