* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

/* Styles for the simplified lookup form */
.lookup-container {
    max-width: 450px;
    margin: 0 auto;
    text-align: center;
}

.lookup-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}
.lookup-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-left: 0.5rem;
    /* margin-bottom: 1rem; */
}
.lookup-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.btn-block {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
}

/* Styles for the redesigned forms */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    margin-bottom: 4px;
}

.char-count {
    text-align: right;
    font-size: 0.8rem;
    color: #7f8c8d;
}

.form-group-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group-checkbox input[type="checkbox"] {
    margin-top: 5px;
    width: 16px;
    height: 16px;
}

.form-group-checkbox label {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.5;
}

.file-upload-area {
    border: 2px dashed #dcdfe6;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s;
}

.file-upload-area:hover {
    border-color: #3498db;
}

.file-upload-button {
    background: #f0f2f5;
    color: #4a5568;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.file-input {
    display: none;
}

.file-names {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Existing styles for order details, modals etc. */
.section {
    margin-bottom: 30px;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    padding: 30px;
    border: 1px solid #e1e5e9;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: #5a67d8;
    color: white;
}

.btn-primary:hover {
    background: #434190;
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.returnable-products-section {
    margin-top: 30px;
}

.products-toggle {
    width: 100%;
    background: none;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.products-toggle:hover {
    background-color: #f8f9f9;
}

.products-toggle i {
    transition: transform 0.3s ease;
}

.products-toggle.collapsed i {
    transform: rotate(180deg);
}

.product-list-new {
    border: 1px solid #e1e5e9;
    border-top: none;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    max-height: 1000px;
    transition: max-height 0.5s ease-in-out;
}

.product-list-new.collapsed {
    max-height: 0;
    border-bottom: none;
    padding: 0;
}

.product-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e1e5e9;
    flex-wrap: wrap;
}

.product-item:last-child {
    border-bottom: none;
}

.product-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 20px;
}

.product-item-details {
    flex: 1;
    min-width: 200px;
}

.product-item-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-item-details p {
    color: #7f8c8d;
    margin: 2px 0;
}

.product-item-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 20px;
}

.btn-exchange, .btn-return {
    width: 120px;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-exchange {
    background-color: #2c3e50;
    color: white;
    border: 1px solid #2c3e50;
}

.btn-return {
    background-color: #7f8c8d;
    color: white;
    border: 1px solid #7f8c8d;
}

.product-item-deadline {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #e1e5e9;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.deadline-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); }

.modal-content { 
    background-color: white; 
    margin: 5% auto; 
    padding: 30px; 
    border-radius: 12px; 
    width: 90%; 
    max-width: 500px; 
    max-height: 80vh;
    overflow-y: auto;
}

.close { color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer; }
.success-modal { text-align: center; }
.success-icon { font-size: 4rem; color: #2ecc71; margin-bottom: 20px; }
.error-message { position: fixed; top: 20px; right: 20px; background: #e74c3c; color: white; padding: 15px 20px; border-radius: 8px; z-index: 1001; }

/* MODIFIED: Styles for the Upload Preview Modal */
.upload-modal-content {
    padding: 0;
    background-color: #f8f9fa;
}

.upload-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
}

.upload-header-btn {
    background: none;
    border: none;
    color: #007bff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}

#fileCount {
    font-weight: 600;
}

.upload-modal-body {
    padding: 20px;
    text-align: center;
}

#imagePreviewContainer {
    margin-bottom: 20px;
    background-color: #fff;
    padding: 10px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    display: none; /* Hidden by default */
}

#imagePreview {
    max-width: 100%;
    max-height: 40vh;
    object-fit: contain;
}

#uploadFileInfo p {
    margin: 0;
    color: #6c757d;
}

#uploadFileName {
    font-weight: 500;
    color: #212529;
}

.upload-modal-footer {
    padding: 20px;
}

#uploadConfirmBtn {
    background-color: #28a745;
}
