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

body {
    font-family: 'Open Sans', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Header Styles - Matching website */
header {
    background-color: #2c3e50;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    background-color: #c0392b;
    color: white;
    font-size: 24px;
    font-weight: 700;
    padding: 10px 15px;
    border-radius: 3px;
}

.logo-subtext {
    color: white;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 600;
    text-transform: uppercase;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s;
}

nav a:hover,
nav a.active {
    color: #e74c3c;
}

.contact-info {
    color: #bdc3c7;
    font-size: 13px;
}

/* Main Content */
main {
    padding: 40px 20px;
}

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

h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    font-weight: 400;
    color: #2c3e50;
}

h1 .highlight {
    color: #e74c3c;
    font-weight: 600;
    display: block;
    margin-top: 5px;
}

h2 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
    font-weight: 600;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
}

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

.form-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    flex: 1 1 100%;
}

.form-group.small {
    flex: 0 1 80px;
    min-width: 60px;
}

.form-group.checkbox-group {
    flex-direction: row;
    align-items: center;
    min-width: 100%;
}

.form-group.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 0;
}

.form-group.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.required {
    color: #e74c3c;
    font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea {
    padding: 12px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Open Sans', Arial, sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
textarea:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

input.error {
    border-color: #e74c3c;
    background-color: #ffe6e6;
}

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

.help-text {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
}

.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    min-height: 18px;
    display: block;
}

/* Declarations Section */
.declarations {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    border-left: 4px solid #e74c3c;
}

.declaration-intro {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.declarations .form-group.checkbox-group {
    margin-bottom: 15px;
}

.declarations .form-group.checkbox-group label {
    font-weight: 400;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
}

.submit-btn,
.reset-btn {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Open Sans', Arial, sans-serif;
}

.submit-btn {
    background-color: #e74c3c;
    color: white;
}

.submit-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.submit-btn:active {
    transform: translateY(0);
}

.reset-btn {
    background-color: #95a5a6;
    color: white;
}

.reset-btn:hover {
    background-color: #7f8c8d;
}

/* Form Messages */
.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #bdc3c7;
    padding: 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-group.small {
        flex: 1;
        min-width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .submit-btn,
    .reset-btn {
        width: 100%;
    }
    
    h1 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 15px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    h2 {
        font-size: 18px;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    .form-actions {
        display: none;
    }
    
    .form-container {
        box-shadow: none;
        padding: 0;
    }
    
    body {
        background: white;
    }
}
