/* General UI Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    margin: 20px;
    color: #333;
}

.container {
    max-width: 900px;
    margin: auto;
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    border-radius: 8px;
}

h1, h2 {
    color: #0056b3;
    border-bottom: 2px solid #eef;
    padding-bottom: 10px;
}

.form-section {
    margin-bottom: 20px;
}

input[type="text"], textarea {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

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

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

button {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #0056b3;
}

#generateBtn {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    background-color: #28a745;
}

#generateBtn:hover {
    background-color: #218838;
}

/* Styles for the Quotation Output Image */
.quote-container {
    width: 800px;
    padding: 20px;
    background-color: #fff;
    font-family: 'SimSun', 'Microsoft YaHei', sans-serif;
    color: #000;
    border: 1px solid #ccc;
}

.quote-container .header {
    text-align: center;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
}
.quote-container .header h1 {
    font-size: 24px;
    margin: 0;
    color: #000;
    border: none;
}
.quote-container .header p {
    margin: 5px 0;
}
.quote-container .header .contact-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.quote-container .title {
    text-align: center;
    margin: 20px 0;
}
.quote-container .title h2 {
    font-size: 28px;
    font-weight: bold;
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 3px solid #000;
    color: #000;
}

.quote-container .client-info {
    position: relative;
    margin-bottom: 15px;
}
.quote-container .client-info p {
    margin: 3px 0;
}
.quote-container .quote-details {
    position: absolute;
    right: 0;
    top: 0;
    text-align: right;
}

.quote-container .items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.quote-container .items-table th, 
.quote-container .items-table td {
    border: 1px solid #000;
    padding: 8px;
    text-align: center;
    vertical-align: middle;
}

.quote-container .items-table th {
    font-weight: bold;
}

.quote-container .footer .terms {
    white-space: pre-wrap; /* Preserve line breaks from textarea */
    font-size: 12px;
    margin-bottom: 20px;
}

.quote-container .footer .signatures {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
}

.quote-container .footer .signatures p {
    margin: 5px 0;
}