* { box-sizing: border-box; }

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #222;
    background: #f2f2f2;
    margin: 0;
    padding: 0;
}

.page-header {
    background: #1e3a5f;
    color: #fff;
    padding: 14px 20px;
}

.page-header h1 {
    margin: 0;
    font-size: 18px;
}

.page-footer {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
}

.tabs {
    background: #fff;
    border-bottom: 2px solid #1e3a5f;
    padding: 0 20px;
    overflow: hidden;
}

.tab-button {
    display: inline-block;
    padding: 10px 16px;
    margin-right: 2px;
    cursor: pointer;
    background: #dde5ec;
    border: 1px solid #b9c6d3;
    border-bottom: none;
    color: #1e3a5f;
    font-weight: bold;
}

.tab-button.active {
    background: #fff;
    border-top: 3px solid #1e3a5f;
}

.tab-content {
    display: none;
    background: #fff;
    padding: 20px;
    margin: 0 20px 20px 20px;
    border: 1px solid #ccc;
    border-top: none;
}

.tab-content.active {
    display: block;
}

.form-section {
    border: 1px solid #b9c6d3;
    margin-bottom: 14px;
}

.form-section-header {
    background: #1e3a5f;
    color: #fff;
    padding: 6px 10px;
    font-weight: bold;
}

.form-section-body {
    padding: 10px;
}

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

table.field-table td {
    padding: 5px 6px;
    vertical-align: top;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 2px;
    color: #333;
}

input[type="text"],
input[type="date"],
input[type="time"],
textarea,
select {
    width: 100%;
    padding: 5px;
    border: 1px solid #999;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
}

textarea {
    resize: vertical;
}

.checkbox-line {
    font-weight: normal;
    display: inline-block;
    margin-right: 16px;
}

.checkbox-line input {
    width: auto;
    margin-right: 4px;
}

.repeat-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 6px;
}

.repeat-table th {
    background: #dde5ec;
    text-align: left;
    padding: 4px;
    font-size: 12px;
}

.repeat-table td {
    padding: 3px;
}

.submit-row {
    margin-top: 16px;
    text-align: right;
}

.submit-row button {
    background: #1e3a5f;
    color: #fff;
    border: none;
    padding: 10px 24px;
    font-size: 14px;
    cursor: pointer;
}

.submit-row button:hover {
    background: #2c517d;
}

.success-banner {
    background: #dcf5dc;
    border: 1px solid #4caf50;
    color: #256029;
    padding: 10px 14px;
    margin: 12px 20px 0 20px;
}

.form-intro {
    background: #fff8e1;
    border: 1px solid #e0c66b;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 12px;
}

.two-col {
    width: 50%;
}
.three-col {
    width: 33%;
}
