/* ================================================
   RETURN PRODUCT FORM MODAL - MODERN DESIGN
   ================================================ */

/* ================================================
   MODAL OVERLAY & CONTAINER
   ================================================ */

.return-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.return-modal-container {
    background: #fff;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}



.return-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f0f0f0;
    color: #666;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.return-modal-close:hover {
    background: #e8e8e8;
    color: #333;
}

/* ================================================
   MODAL FORM HEADER
   ================================================ */

.return-modal-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.return-modal-title {
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.return-modal-subtitle {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
    font-weight: 400;
    line-height: 1.6;
}

/* ================================================
   MODAL FORM
   ================================================ */

.return-modal-form {
    display: flex;
    flex-direction: column;
}

/* Form Group (Field Wrapper) */
.return-modal-group {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
}

/* Form Label */
.return-modal-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.return-modal-label-icon {
    font-size: 18px;
    line-height: 1;
}

/* Select Dropdown */
.return-modal-select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    color: #2c3e50;
    background-color: #fff;
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23c31738' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.return-modal-select:hover {
    border-color: #c31738;
}

.return-modal-select:focus {
    outline: none;
    border-color: #c31738;
    background-color: #f8f9ff;
}

.return-modal-select option {
    padding: 8px;
    color: #2c3e50;
    background-color: #fff;
}

.return-modal-select option:checked {
    background: linear-gradient(135deg, #c31738 0%, #764ba2 100%);
    color: #fff;
}

/* Textarea */
.return-modal-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    color: #2c3e50;
    font-family: inherit;
    resize: vertical;
    line-height: 1.6;
}

.return-modal-textarea::placeholder {
    color: #bdc3c7;
}

.return-modal-textarea:hover {
    border-color: #c31738;
}

.return-modal-textarea:focus {
    outline: none;
    border-color: #c31738;
    background-color: #f8f9ff;
}

/* Character Counter */
.return-modal-char-count {
    display: block;
    font-size: 12px;
    color: #95a5a6;
    margin-top: 8px;
    text-align: right;
}

/* Form Actions (Buttons) */
.return-modal-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

/* Cancel Button */
.return-modal-btn-cancel {
    flex: 1;
    padding: 11px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
    color: #2c3e50;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.return-modal-btn-cancel:hover {
    border-color: #2c3e50;
    background: #f8f9fa;
}



/* Submit Button */
.return-modal-btn-submit {
    flex: 1;
    padding: 11px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #cf1539 0%, #76222f 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.return-modal-btn-submit:hover {
}



.return-modal-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.return-modal-btn-text {
    display: inline;
}

.return-modal-btn-icon {
    display: inline-block;
    font-weight: bold;
}

/* Info Section */
.return-modal-info {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-left: 4px solid #c31738;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.return-modal-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: #555;
    line-height: 1.4;
}

.return-modal-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #c31738;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    flex-shrink: 0;
    font-weight: bold;
}

.return-modal-info-text {
    padding-top: 1px;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 600px) {
    .return-modal-container {
        max-width: 95%;
        padding: 30px 20px;
        max-height: 85vh;
    }

    .return-modal-header {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }

    .return-modal-title {
        font-size: 22px;
    }

    .return-modal-subtitle {
        font-size: 13px;
    }

    .return-modal-label {
        font-size: 13px;
    }

    .return-modal-select,
    .return-modal-textarea {
        font-size: 13px;
        padding: 10px 12px;
    }

    .return-modal-actions {
        gap: 10px;
        margin-bottom: 20px;
    }

    .return-modal-btn-cancel,
    .return-modal-btn-submit {
        padding: 10px 16px;
        font-size: 12px;
    }

    .return-modal-info {
        padding: 12px;
        gap: 8px;
    }

    .return-modal-info-item {
        font-size: 11px;
        gap: 8px;
    }
}

@media (max-width: 400px) {
    .return-modal-container {
        padding: 24px 16px;
    }

    .return-modal-title {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .return-modal-subtitle {
        font-size: 12px;
    }

    .return-modal-close {
        width: 28px;
        height: 28px;
        font-size: 20px;
    }

    .return-modal-group {
        margin-bottom: 18px;
    }

    .return-modal-actions {
        flex-direction: column;
    }

    .return-modal-btn-cancel,
    .return-modal-btn-submit {
        width: 100%;
    }
}

/* ================================================
   ACCESSIBILITY
   ================================================ */

.return-modal-select:focus,
.return-modal-textarea:focus {
    outline: 2px solid #c31738;
    outline-offset: 2px;
}

.return-modal-btn-cancel:focus,
.return-modal-btn-submit:focus {
    outline: 2px solid #c31738;
    outline-offset: 2px;
}

/* ================================================
   DARK MODE SUPPORT (Optional)
   ================================================ */

@media (prefers-color-scheme: dark) {
    .return-modal-container {
        background: #2a2a2a;
    }

    .return-modal-header {
        border-bottom-color: #444;
    }

    .return-modal-title {
        color: #ecf0f1;
    }

    .return-modal-subtitle {
        color: #bdc3c7;
    }

    .return-modal-close {
        background: #3a3a3a;
        color: #999;
    }

    .return-modal-close:hover {
        background: #444;
        color: #ccc;
    }

    .return-modal-label {
        color: #ecf0f1;
    }

    .return-modal-select,
    .return-modal-textarea {
        background-color: #34495e;
        color: #ecf0f1;
        border-color: #555;
    }

    .return-modal-select:focus,
    .return-modal-textarea:focus {
        background-color: #3d4f5f;
        border-color: #c31738;
    }

    .return-modal-select option {
        background-color: #34495e;
        color: #ecf0f1;
    }

    .return-modal-textarea::placeholder {
        color: #7f8c8d;
    }

    .return-modal-char-count {
        color: #95a5a6;
    }

    .return-modal-btn-cancel {
        background: #34495e;
        color: #ecf0f1;
        border-color: #555;
    }

    .return-modal-btn-cancel:hover {
        background: #3d4f5f;
        border-color: #c31738;
    }

    .return-modal-info {
        background: rgba(102, 126, 234, 0.15);
        border-left-color: #c31738;
    }

    .return-modal-info-text {
        color: #bdc3c7;
    }
}
