/* Simple RFQ Styles */
:root {
    --primary: #0B4F6C;
    --primary-dark: #083b4f;
    --primary-light: #1a6b8a;
    --secondary: #10B981;
    --accent: #F59E0B;
    --danger: #EF4444;
    --whatsapp: #25D366;
    --dark: #1F2937;
    --gray-700: #374151;
    --gray-600: #4B5563;
    --gray-500: #6B7280;
    --gray-400: #9CA3AF;
    --gray-300: #D1D5DB;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
    --white: #FFFFFF;
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.08);
    --radius: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-100);
    color: var(--dark);
    line-height: 1.5;
    padding-bottom: 20px;
}

/* Header */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    max-width: 600px;
    margin: 0 auto;
}

.back-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    color: var(--gray-600);
    font-size: 18px;
    cursor: pointer;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.logo-circle {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    font-style: italic;
}

.logo-text {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary);
}

.rfq-badge {
    background: var(--accent);
    color: var(--dark);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}

/* Main Content */
.main-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 24px;
}

.hero-section h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.hero-section p {
    color: var(--gray-600);
    font-size: 14px;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
}

.step.active .step-number {
    background: var(--primary);
    color: white;
}

.step-label {
    font-size: 11px;
    color: var(--gray-500);
}

.step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--gray-200);
    margin: 0 8px;
}

/* Form Cards */
.form-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.form-card h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-card h2 i {
    color: var(--primary);
}

.form-card > p {
    color: var(--gray-500);
    font-size: 13px;
    margin-bottom: 20px;
}

/* Form Groups */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--gray-700);
}

.required {
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 79, 108, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

/* Phone Input */
.phone-input {
    display: flex;
    gap: 8px;
}

.country-code {
    width: 100px;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: var(--white);
}

/* Contact Preference */
.contact-preference {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.preference-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.preference-option:hover {
    border-color: var(--primary);
    background: var(--gray-100);
}

.preference-option input[type="radio"] {
    display: none;
}

.preference-option input[type="radio"]:checked + & {
    border-color: var(--primary);
    background: #EFF6FF;
}

.preference-option i {
    font-size: 24px;
}

.preference-option i.fa-whatsapp {
    color: var(--whatsapp);
}

.preference-option i.fa-envelope {
    color: var(--primary);
}

.preference-option span {
    font-size: 12px;
    font-weight: 500;
}

/* Products Container */
#productsContainer {
    margin-bottom: 20px;
}

.product-row {
    margin-bottom: 20px;
}

.product-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.product-row-header h4 {
    font-size: 15px;
    color: var(--gray-700);
}

.remove-product-btn {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}

.product-divider {
    border: none;
    border-top: 1px dashed var(--gray-300);
    margin: 20px 0;
}

.add-product-btn {
    width: 100%;
    padding: 14px;
    background: var(--white);
    border: 1px dashed var(--primary);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.add-product-btn:hover {
    background: #EFF6FF;
}

/* File Upload */
.file-upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-sm);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    background: var(--gray-50);
}

.file-upload-area i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 8px;
}

.file-upload-area p {
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: 4px;
}

.file-upload-area small {
    font-size: 11px;
    color: var(--gray-500);
}

.file-list {
    margin-top: 12px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
}

.file-item i {
    color: var(--primary);
}

.file-name {
    flex: 1;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 11px;
    color: var(--gray-500);
}

.remove-file {
    color: var(--danger);
    cursor: pointer;
}

/* Terms Section */
.terms-section {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    cursor: pointer;
}

.checkbox-label input {
    margin-top: 2px;
    width: 18px;
    height: 18px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-primary, .btn-secondary {
    padding: 14px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    flex: 2;
    background: var(--primary);
    color: white;
}

.btn-primary:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
}

.btn-secondary {
    flex: 1;
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-large {
    width: 100%;
}

/* Info Note */
.info-note {
    background: #EFF6FF;
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--primary);
}

.info-note i {
    font-size: 18px;
}

/* Step Content */
.step-content {
    display: none;
}

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

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loading-overlay .spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--gray-300);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

.loading-overlay p {
    color: white;
    font-size: 16px;
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius);
    width: 100%;
    max-width: 400px;
    padding: 32px 24px;
    text-align: center;
    animation: modalSlideUp 0.3s ease;
}

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

.modal-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.modal-icon.success {
    background: #E7F5E8;
    color: var(--secondary);
}

.modal h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.modal p {
    color: var(--gray-600);
    margin-bottom: 8px;
}

.rfq-number {
    background: var(--gray-100);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin: 16px 0;
}

.info-text {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 16px;
    right: 16px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 14px 20px;
    border-radius: 30px;
    font-size: 14px;
    text-align: center;
    z-index: 3000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
    max-width: 400px;
    margin: 0 auto;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    background: var(--secondary);
}

.toast.error {
    background: var(--danger);
}

/* Responsive */
@media (max-width: 480px) {
    .contact-preference {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}