/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: aqua;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    padding: 20px;
}

/* Container for the form */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Header styles */
h1 {
    color: #2c5aa0;
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    color: #5a5a5a;
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 30px;
    font-style: italic;
}

/* Form sections */
.form-section {
    margin-bottom: 25px;
    padding: 20px;
    background-color: rgba(240, 248, 255, 0.7);
    border-radius: 10px;
    border-left: 4px solid #2c5aa0;
}

.section-title {
    color: #2c5aa0;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 5px;
}

/* Question styles */
p, .question-label {
    color: #444;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 15px;
}

/* Input field styles */
input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 10px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 8px rgba(44, 90, 160, 0.3);
}

/* Textarea specific */
textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* Radio button and checkbox styles */
.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0;
}

.radio-item,
.checkbox-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.radio-item:hover,
.checkbox-item:hover {
    background-color: rgba(44, 90, 160, 0.1);
}

input[type="radio"],
input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
    accent-color: #2c5aa0;
}

/* Label styles */
label {
    color: #555;
    font-weight: 500;
    cursor: pointer;
    display: inline-block;
}

/* Select dropdown styles */
select {
    background-color: white;
    cursor: pointer;
}

/* Submit button */
input[type="submit"] {
    background: linear-gradient(135deg, #2c5aa0, #4a7bc8);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

input[type="submit"]:hover {
    background: linear-gradient(135deg, #1e3d6f, #2c5aa0);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="number"],
    select,
    textarea {
        max-width: 100%;
    }
    
    .radio-group,
    .checkbox-group {
        gap: 5px;
    }
}

/* Form layout improvements */
form {
    text-align: left;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.form-row label {
    min-width: 150px;
    font-weight: 600;
}

/* Required field indicator */
.required::after {
    content: " *";
    color: #e74c3c;
    font-weight: bold;
}
