/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 11pt;
    /* Slightly smaller base font for more content */
    color: #333;
}

/* Page Setup for A4 */
.page-container {
    width: 210mm;
    min-height: 297mm;
    margin: 10mm auto;
    background: white;
    padding: 20mm;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Header */
.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #333;
    padding-bottom: 15px;
}

.header-logo-text {
    text-align: center;
    flex-grow: 1;
}

.header-logo-text h2 {
    margin: 0;
    font-size: 14pt;
    font-weight: bold;
    text-transform: uppercase;
    color: #333;
}

.header-logo-text h3 {
    margin: 5px 0 0;
    font-size: 10pt;
    font-weight: normal;
    text-transform: uppercase;
    color: #555;
}

.logo-placeholder {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-placeholder img {
    max-width: 100%;
    max-height: 100%;
}

/* Form Layout */
.form-section {
    margin-bottom: 15px;
}

.input-row {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    align-items: flex-end;
}

.input-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* Fix flex overflow */
}

.input-group label {
    font-size: 9pt;
    font-weight: bold;
    margin-bottom: 4px;
    text-transform: uppercase;
    color: #444;
}

.line-input {
    border: none;
    border-bottom: 1px solid #999;
    padding: 5px 0;
    font-size: 11pt;
    font-family: inherit;
    background: transparent;
    outline: none;
    transition: border-color 0.3s;
    width: 100%;
}

.line-input:focus {
    border-bottom-color: #000;
}

/* Flex utilities for inputs */
.flex-1 {
    flex: 1;
}

.flex-2 {
    flex: 2;
}

.flex-3 {
    flex: 3;
}

.w-full {
    width: 100%;
}

.divider {
    height: 1px;
    background-color: #ddd;
    margin: 20px 0;
}

/* Specific Field Adjustments */
.vehicle-info,
.owner-info,
.seller-info {
    margin-top: 10px;
}

.section-title {
    font-size: 12pt;
    font-weight: bold;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    padding: 5px;
    border-left: 4px solid #333;
}

/* Print Specific Styles */
@media print {
    @page {
        size: A4;
        margin: 0;
    }

    body {
        margin: 0;
        background: white;
    }

    .page-container {
        width: 100%;
        margin: 0;
        box-shadow: none;
        border: none;
        padding: 15mm;
        /* Slightly less padding for print */
    }

    .top-bar,
    .main-header,
    footer,
    .mobile-menu-btn,
    .chatbot-fab,
    .chatbot-window {
        display: none !important;
    }

    .line-input {
        border-bottom: 1px solid #000;
        /* Ensure visibility in print */
    }
}