/* Reset and Base Styles */
* {
    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: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-logo i {
    margin-right: 10px;
    color: #e74c3c;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #e74c3c;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e74c3c;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    margin-top: 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    text-align: center;
}

.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    background-color: rgba(255,255,255,0.1);
    padding: 20px;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.btn-primary:hover {
    background: #c0392b;
    border-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #e74c3c;
    border-color: #e74c3c;
}

.btn-outline:hover {
    background: #e74c3c;
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #e74c3c;
    border-radius: 2px;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background: #f8f9fa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Equipment Types Section */
.equipment-types {
    padding: 80px 0;
    background: #f8f9fa;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.equipment-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.equipment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.equipment-image {
    height: 200px;
    overflow: hidden;
}

.equipment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    background-color: #f8f9fa;
    padding: 10px;
}

.equipment-card:hover .equipment-image img {
    transform: scale(1.05);
}

.equipment-content {
    padding: 1.5rem;
}

.equipment-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.equipment-content p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.equipment-specs {
    list-style: none;
    margin-bottom: 1.5rem;
}

.equipment-specs li {
    padding: 0.25rem 0;
    color: #555;
    position: relative;
    padding-left: 20px;
}

.equipment-specs li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: bold;
}

/* Process Flow Section */
.process-flow {
    padding: 80px 0;
    background: white;
}

.process-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.process-step {
    display: flex;
    align-items: center;
    text-align: center;
    flex-direction: column;
    max-width: 200px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.step-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.step-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.process-arrow {
    color: #e74c3c;
    font-size: 1.5rem;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #e74c3c;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #e74c3c;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
}

.footer-section p i {
    margin-right: 8px;
    color: #e74c3c;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #34495e;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #e74c3c;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Main content spacing for fixed header */
.main {
    margin-top: 80px;
}

/* Form Styles */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 20px;
    margin-bottom: 2rem;
}

.form-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e74c3c;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Input with units styling */
.input-with-units {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.input-with-units input {
    flex: 1;
    margin-bottom: 0;
    width: auto;
}

.input-with-units select {
    flex: 0 0 auto;
    min-width: 120px;
    margin-bottom: 0;
    width: auto;
}

.unit-conversion {
    display: block;
    margin-top: 4px;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

/* Ensure clean form group layout */
.form-group .input-with-units {
    position: relative;
}

.form-group .input-with-units input[type="number"] {
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
}

.form-group .input-with-units input[type="number"]::-webkit-outer-spin-button,
.form-group .input-with-units input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove any extra spacing or pseudo-elements */
.form-group .input-with-units::before,
.form-group .input-with-units::after {
    display: none;
}

/* Ensure select elements render properly */
.form-group .input-with-units select {
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    appearance: menulist;
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    font-size: 1rem;
}

/* Fix for any extra input elements that might be appearing */
.form-group .input-with-units input:not([type="number"]) {
    display: none !important;
}

/* Ensure only the correct input and select are visible */
.form-group .input-with-units > * {
    display: block;
}

.form-group .input-with-units > input[type="number"] {
    display: block;
}

.form-group .input-with-units > select {
    display: block;
}

/* Hide any pseudo-elements or extra content */
.form-group .input-with-units *::before,
.form-group .input-with-units *::after {
    display: none !important;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.form-actions .btn {
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-actions .btn i {
    font-size: 0.9rem;
}

.hidden-file-input {
    display: none;
}

.equipment-list.hidden {
    display: none;
}

/* RFQ Manager specific styles */
.nav-logo i.fa-cog {
    color: #e74c3c;
}

.upload-icon {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.hidden-file-input {
    display: none;
}

.cta-button {
    margin-top: 1rem;
}

/* Table Styles */
.table-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 2rem;
}

.table-header {
    background: #2c3e50;
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.table-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.table tr:hover {
    background: #f8f9fa;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .process-steps {
        flex-direction: column;
    }

    .process-arrow {
        transform: rotate(90deg);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .table-container {
        overflow-x: auto;
    }

    /* Mobile unit conversion styling */
    .input-with-units {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .input-with-units select {
        min-width: auto;
        width: 100%;
    }

    .unit-conversion {
        font-size: 0.8rem;
        margin-top: 2px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #e74c3c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Form section fieldset styling - match other sections at 736px */
fieldset.form-section {
    width: 736px !important;
    max-width: 736px !important;
    min-width: 736px !important;
    box-sizing: border-box;
    margin: 0 auto;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    padding: 1.5rem;
    background: #f8f9fa;
    display: block;
    overflow: hidden;
}

/* Override any inherited width from parent containers */
.form-container fieldset.form-section {
    width: 736px !important;
    max-width: 736px !important;
    min-width: 736px !important;
}

/* Ensure form-row within form-section also respects the width */
fieldset.form-section .form-row {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Adjust form-group width within form-section */
fieldset.form-section .form-group {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure input-with-units respects container width */
fieldset.form-section .input-with-units {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 0.5rem;
    display: flex;
    align-items: center;
}

/* Adjust input and select widths within form-section to fit properly */
fieldset.form-section .input-with-units input[type="number"] {
    width: 60%;
    max-width: 60%;
    flex: 0 0 60%;
    box-sizing: border-box;
}

fieldset.form-section .input-with-units select {
    width: 35%;
    max-width: 35%;
    flex: 0 0 35%;
    min-width: 120px;
    box-sizing: border-box;
}

/* Ensure form-row doesn't exceed container width */
fieldset.form-section .form-row {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 0.5rem;
}

/* Adjust form-group spacing within form-section */
fieldset.form-section .form-group {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 1rem;
    padding: 0 0.25rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 0;
    border: none;
    border-radius: 10px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: #2c3e50;
    color: white;
    padding: 1.5rem;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0 0 10px 10px;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* RFQ Preview Styles */
.rfq-preview {
    padding: 2rem;
    background: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.rfq-preview h1 {
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.rfq-preview h2 {
    color: #2c3e50;
    background: #ecf0f1;
    padding: 0.75rem 1rem;
    margin: 2rem 0 1rem 0;
    border-left: 4px solid #3498db;
    border-radius: 0 5px 5px 0;
}

.rfq-preview h3 {
    color: #34495e;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.1rem;
}

.rfq-preview .preview-section {
    margin-bottom: 2rem;
    page-break-inside: avoid;
}

.rfq-preview .preview-row {
    display: flex;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.rfq-preview .preview-field {
    flex: 1;
    min-width: 200px;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

.rfq-preview .preview-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    display: block;
}

.rfq-preview .preview-value {
    color: #34495e;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #3498db;
    min-height: 1.2rem;
}

.rfq-preview .preview-value.empty {
    color: #95a5a6;
    font-style: italic;
}

.rfq-preview .preview-full-width {
    width: 100%;
    margin-bottom: 1rem;
}

.rfq-preview .preview-notes {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 1rem;
    margin: 1rem 0;
}

.rfq-preview .preview-notes h4 {
    color: #856404;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.rfq-preview .preview-notes p {
    margin: 0;
    color: #856404;
}

.rfq-preview .preview-files {
    background: #e8f4fd;
    border: 1px solid #b8daff;
    border-radius: 5px;
    padding: 1rem;
    margin: 1rem 0;
}

.rfq-preview .preview-files h4 {
    color: #004085;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.rfq-preview .preview-files ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #004085;
}

/* Print Styles */
@media print {
    .modal {
        display: block !important;
        position: static;
        background: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
    
    .modal-content {
        margin: 0;
        padding: 0;
        width: 100%;
        max-width: none;
        max-height: none;
        box-shadow: none;
        border-radius: 0;
    }
    
    .modal-header,
    .modal-footer {
        display: none;
    }
    
    .modal-body {
        padding: 0;
        overflow: visible;
    }
    
    .rfq-preview {
        padding: 0;
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .rfq-preview h1 {
        font-size: 18pt;
        margin-bottom: 1.5rem;
    }
    
    .rfq-preview h2 {
        font-size: 14pt;
        margin: 1.5rem 0 0.75rem 0;
        page-break-after: avoid;
    }
    
    .rfq-preview h3 {
        font-size: 12pt;
        margin: 1rem 0 0.5rem 0;
    }
    
    .rfq-preview .preview-section {
        page-break-inside: avoid;
        margin-bottom: 1.5rem;
    }
    
    .rfq-preview .preview-row {
        margin-bottom: 0.5rem;
    }
    
    .rfq-preview .preview-field {
        margin-right: 0.75rem;
        margin-bottom: 0.25rem;
    }
    
    .rfq-preview .preview-value {
        padding: 0.25rem 0.5rem;
        font-size: 11pt;
    }
    
    .rfq-preview .preview-notes,
    .rfq-preview .preview-files {
        padding: 0.75rem;
        margin: 0.75rem 0;
        font-size: 11pt;
    }
    
    /* Hide form elements that shouldn't print */
    .form-actions,
    .btn,
    input[type="file"],
    .hamburger,
    .nav-menu,
    .footer {
        display: none !important;
    }
    
    /* Ensure proper page breaks */
    .preview-section {
        page-break-inside: avoid;
    }
    
    /* Print margins */
    @page {
        margin: 0.5in;
        size: A4;
    }
}
