/* -------------------------------------------------------------- 
   
   Boilerplate forms.css
   * Sets up some default styling for forms
   
-------------------------------------------------------------- */

label { font-weight: bold; }

/* Fieldsets */
fieldset { padding: 1.4em; margin: 0 0 1.5em 0; border: 1px solid #ddd; }
legend { padding: 0 .4em; font-weight: bold; font-size: 1.2em; }

/* Textareas */
textarea { margin: 0.5em 0.5em 0 0; }
textarea { padding: .4em; }


/* hForm
-------------------------------------------------------------- */
form.hform p { margin: 0 0 .5em; }
form.hform p label { float: left; width: 100px; }

form.hform p input { width: 200px; }
form.hform p select { width: 200px; }

form.hform p input.button { width: auto; }
form.hform p input.checkbox { width: auto; }
form.hform p input.radio { width: auto; }

form.hform p.checkbox { margin-left: 100px; }
form.hform p.checkbox label { float: none; }
form.hform p.checkbox input { width: auto; }


/* vForm
-------------------------------------------------------------- */
form.vform p { margin: 0 0 .5em; }
form.vform p label { display: block; }

form.vform p.checkbox label { display: inline; }


/* Survey Form Styles
-------------------------------------------------------------- */

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

.services-description {
    background-color: #9ccaf8;
    padding: 10px 0;
    margin-bottom: 40px;
}

.services-description h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.services-description ul {
    max-width: 800px;
    margin: 20px auto;
    padding-left: 20px;
}

.services-description li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.survey-form {
    padding: 40px 0;
    background-color: #9ccaf8;
}

.survey-form h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.request-form {
    max-width: 1000px;
    margin: 0 auto;
}

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

/* Special styling for form-row containing submit button */
.form-row:has(.submit-btn) {
    justify-content: center;
    align-items: center;
    min-height: 80px;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Fallback for browsers that don't support :has() */
.form-row:last-child {
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
    min-height: 80px;
}

.form-group {
    flex: 1;
    min-width: 250px;
    background-color: #3498db;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #34495e;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

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

.submit-btn {
    background-color: #0d1bd6;
    color: #ffffff;
    padding: 8px 40px;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
    height: 45px;
}

.submit-btn:hover {
    background-color: #34495e;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group {
        min-width: 100%;
    }
    
    .container {
        padding: 15px;
    }
}