* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation */
.navbar {
    background-color: #2c3e50;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.navbar h1 {
    font-size: 24px;
    margin: 0;
}

.navbar a {
    color: white;
    text-decoration: none;
}

.navbar a:hover {
    opacity: 0.8;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar ul li a {
    padding: 8px 12px;
}

/* Forms */
.form-container {
    background: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.form-container > p {
    color: #666;
    margin-bottom: 20px;
}

fieldset {
    border: 1px solid #ddd;
    padding: 20px;
    margin: 20px 0;
    border-radius: 3px;
    background-color: #fafafa;
}

legend {
    padding: 0 15px;
    font-weight: bold;
    color: #2c3e50;
    font-size: 16px;
}

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

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

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

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

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 3px;
    border-left: 4px solid;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    color: #666;
    border-top: 1px solid #ddd;
    margin-top: 50px;
    background-color: #f9f9f9;
}

footer p {
    margin: 0;
}

/* Message containers */
.message-container {
    background: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-container h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

/* Waiver view */
.waiver-view {
    background: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.waiver-view h2 {
    color: #2c3e50;
    margin-bottom: 30px;
}

.waiver-view h3 {
    color: #495057;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .navbar .container {
        flex-direction: column;
        text-align: center;
    }
    
    .navbar ul {
        margin-top: 15px;
        justify-content: center;
    }
    
    .division-grid {
        grid-template-columns: 1fr !important;
    }
    
    [style*="grid-template-columns: 1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* Utility classes */
.required::after {
    content: " *";
    color: red;
}

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: #999;
}

small {
    color: #666;
    font-size: 12px;
}

/* Signature section styles */
.signature-section {
    margin: 20px 0;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
}

.signature-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.sig-tab {
    padding: 8px 16px;
    border: 1px solid #ccc;
    background: #f0f0f0;
    cursor: pointer;
    border-radius: 3px;
}

.sig-tab.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

#canvas-signature {
    border: 1px solid #999;
    cursor: crosshair;
    background: white;
    display: block;
    margin: 10px 0;
    touch-action: none;
}

.button-group {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.division-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 10px 0;
}

/* Tab content */
.tab-content {
    display: none;
}

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

/* Message containers */
.message-container {
    background: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-container.center-text {
    text-align: center;
}

.message-icon {
    margin: 20px 0;
    font-size: 48px;
}

.message-icon.success {
    color: #28a745;
}

.info-box {
    background: #f0f0f0;
    padding: 20px;
    border-radius: 5px;
    margin: 20px auto;
    max-width: 600px;
}

.info-box.success-bg {
    background: #e8f5e9;
}

.info-box.summary {
    background: #f9f9f9;
    margin: 30px auto;
    max-width: 600px;
    text-align: left;
    padding: 20px;
    border-left: 4px solid #2196F3;
}

.info-list {
    text-align: left;
    display: inline-block;
}

.info-text {
    color: #666;
    margin-top: 20px;
}

.info-text.small {
    font-size: 14px;
}

.success-name {
    margin: 0;
    color: #2e7d32;
}

.success-msg {
    margin: 10px 0 0 0;
    color: #558b2f;
}

.btn-group {
    margin-top: 40px;
}

.btn-group a + a {
    margin-left: 10px;
}

/* Home page styles */
.home-hero {
    text-align: center;
    padding: 60px 20px;
}

.home-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
}

.home-subtitle {
    font-size: 18px;
    color: #666;
    margin: 20px 0;
}

.home-cta {
    margin: 40px 0;
}

.home-cta .btn-primary {
    padding: 15px 30px;
    font-size: 18px;
}

.how-it-works {
    max-width: 600px;
    margin: 40px auto;
    text-align: left;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
}

/* Waiver view styles */
.waiver-view {
    background: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.waiver-view h2 {
    color: #2c3e50;
    margin-bottom: 30px;
}

.waiver-view h3 {
    color: #495057;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.waiver-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}

.status-verified {
    color: green;
}

.status-pending {
    color: orange;
}

.signature-image {
    max-width: 300px;
    border: 1px solid #ddd;
    padding: 10px;
}

/* Definition list styles */
dl {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 10px;
}

dt {
    font-weight: bold;
    color: #333;
    text-align: right;
}

dd {
    margin: 0;
    color: #666;
}

/* Verified page specific */
.verified-summary p {
    margin: 10px 0;
}

.verified-summary p:first-child {
    margin-top: 0;
}

.verified-summary p:last-child {
    margin-bottom: 0;
}
