*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1a1a2e;
    background: #f0f2f5;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.site-header {
    background: #16213e;
    color: #fff;
    padding: 1.25rem 0;
    margin-bottom: 2rem;
}

.site-header .logo {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.site-header .tagline {
    margin: 0.25rem 0 0;
    opacity: 0.75;
    font-size: 0.95rem;
}

.site-footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    text-align: center;
    color: #666;
    font-size: 0.875rem;
}

.card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.rfq-header h2 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    color: #16213e;
}

.vendor-name {
    margin: 0;
    color: #444;
}

.expiry {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    color: #666;
}

.alert {
    border-left: 4px solid;
}

.alert-warning {
    border-color: #e6a817;
    background: #fffbeb;
}

.alert-info {
    border-color: #2563eb;
    background: #eff6ff;
}

.success-card {
    text-align: center;
    padding: 3rem 2rem;
}

.success-card h2 {
    color: #16a34a;
    margin-top: 0;
}

h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #16213e;
}

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

label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
}

.required {
    color: #dc2626;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.15s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

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

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

.line-items {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.line-items th,
.line-items td {
    padding: 0.6rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.line-items th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.line-items td.num {
    text-align: right;
}

.line-items input[type="number"],
.line-items input[type="text"] {
    width: 100%;
    min-width: 70px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.25rem 1rem;
    margin-top: 1rem;
}

.summary dt {
    font-weight: 600;
    color: #555;
}

.summary dd {
    margin: 0;
}

@media (max-width: 640px) {
    .line-items th:nth-child(2),
    .line-items td:nth-child(2) {
        min-width: 120px;
    }
}
