/* Global Styles */
:root {
    --primary: #1a3c6e;
    --primary-dark: #15325c;
    --accent: #cc0000;
    --accent-dark: #aa0000;
    --bg-light: #f5f7fa;
    --text-dark: #222;
    --text-light: #555;
    --radius: 12px;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

body {
    font-family: "Inter", "Segoe UI", sans-serif;
    margin: 0;
    padding: 20px;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
}

/* Header */
h1 {
    text-align: center;
    font-size: 2.4em;
    margin-bottom: 25px;
    font-weight: 700;
    color: var(--primary);
}

.logo {
    text-align: center;
    margin-bottom: 25px;
}
.logo img {
    max-width: 160px;
}

/* Section Titles */
h2 {
    border-left: 5px solid var(--primary);
    padding-left: 12px;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.6em;
    font-weight: 600;
    color: var(--text-dark);
}

h3 {
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 1.2em;
    font-weight: 500;
}

footer {
    text-align: center;
    padding: 15px 10px;
    color: white;
    font-size: 0.9em;
    margin-top: 40px;
    border-radius: 8px 8px 0 0;
}

/* Card Sections */
.flex-section {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 30px;
}

.flex-section > div {
    flex: 1;
    min-width: 320px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    transition: transform 0.2s ease;
}

.flex-section > div:hover {
    transform: translateY(-3px);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th {
    text-align: left;
    padding: 10px;
    width: 35%;
    color: var(--text-light);
    background: #f4f6f9;
    font-weight: 500;
    border-bottom: 1px solid #e0e0e0;
}

td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

td small {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-top: 4px;
}
/* Form Elements */
input[type="text"],
input[type="date"],
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: var(--radius);
    font-size: 14px;
    box-sizing: border-box;
    transition: border 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 6px rgba(26, 60, 110, 0.2);
    outline: none;
}

/* Buttons */
button {
    padding: 12px 24px;
    font-size: 1em;
    border-radius: var(--radius);
    cursor: pointer;
    border: none;
    transition: background 0.3s, transform 0.2s;
}

button:hover {
    transform: translateY(-2px);
}

button[type="submit"] {
    background: var(--accent);
    color: white;
    font-size: 1.1em;
    font-weight: 600;
    display: block;
    margin: 30px auto 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button[type="submit"]:hover {
    background: var(--accent-dark);
}

button[type="button"] {
    background: #777;
    color: white;
    font-size: 0.9em;
    padding: 8px 16px;
}
button[type="button"]:hover {
    background: #555;
}

/* Signature */
canvas {
    background: #fff;
    border: 2px dashed #ccc;
    border-radius: var(--radius);
    width: 100%;
    max-width: 500px;
    height: 160px;
    margin: 15px auto;
    display: block;
}

/* Info Text */
p {
    font-size: 0.95em;
    color: var(--text-light);
    padding: 15px;
    background: #fff;
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Print Optimized */
@media print {
    button { display: none; }
    body { background: white; margin: 0; padding: 20px; }
    .flex-section > div { box-shadow: none; }
    input, select { border: none; }
}

/* Responsive */
@media (max-width: 800px) {
    body { padding: 10px; }
    h1 { font-size: 1.8em; }
    h2 { font-size: 1.3em; }
    .flex-section { flex-direction: column; }
    button[type="submit"] { width: 100%; }
}
