:root {
    --primary-color: #4a6fa5;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --error-color: #dc3545;
    --light-gray: #f8f9fa;
    --border-color: #ced4da;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--primary-color);
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input[type="text"],
input[type="date"],
input[type="tel"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 10px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    margin-bottom: 0;
}

.checkbox-group input {
    margin-right: 8px;
}

.signature-pad {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 10px;
    background-color: white;
}

#signatureCanvas {
    width: 100%;
    height: 150px;
    cursor: crosshair;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #3a5a8f;
}

.secondary-btn {
    background-color: var(--secondary-color);
    margin-top: 5px;
}

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

#submitBtn {
    margin-top: 20px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-row .form-group {
    flex: 1 1 calc(50% - 20px);
}

.radio-group label,
.checkbox-group label {
    display: inline-flex;
    margin-right: 15px;
    font-weight: normal;
}

.checkbox-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

/* Accordion Styles */
.accordion-header {
    background-color: #f1f1f1;
    color: #444;
    cursor: pointer;
    padding: 15px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    font-weight: bold;
    transition: 0.4s;
    border-radius: 4px;
    margin-top: 10px;
}

.accordion-header.active, .accordion-header:hover {
    background-color: #ddd;
}

.accordion-header::after {
    content: '\002B'; /* Plus sign */
    color: #777;
    font-weight: bold;
    float: right;
    margin-left: 5px;
}

.accordion-header.active::after {
    content: '\2212'; /* Minus sign */
}

.accordion-panel {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
}

.form-section {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.privacy-text {
    font-size: 12px;
    color: #666;
}

.sms-consent-label {
    font-size: 12px;
    font-weight: normal;
}

@media (max-width: 768px) {
    .form-row .form-group {
        flex-basis: 100%;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    .checkbox-group, .radio-group {
        flex-direction: column;
        gap: 5px;
    }
}
