/* Reset and Base Styles */
.webform-submission-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Header Styles */
.head5 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid #3498db;
    padding-bottom: 1rem;
}

/* Form Field Containers */
.js-form-item {
    margin-bottom: 1.5rem;
    position: relative;
}

/* Labels */
label {
    display: block;
    margin-bottom: 0.5rem;
    color: #34495e;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Required Field Indicator */
.js-form-required:after {
    content: '*';
    color: #e74c3c;
    margin-left: 4px;
}
legend.captcha__title.js-form-required.form-required {
    /* margin-top: 10px; */
    position: relative;
    top: 25px;
}
/* Text Fields */
input[type="text"],
input[type="email"],
input[type="tel"],
select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #bdc3c7;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* Select Dropdowns */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

/* Radio Buttons */
.js-form-type-radio {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
}

input[type="radio"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

/* Form Actions */
.form-actions {
    margin-top: 2rem;
    text-align: center;
}

/* Submit Button */
.button {
    background-color: #3498db;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #2980b9;
}

/* Error States */
.error input,
.error select {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Flexbox Layouts */
.flexbox {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.flexbox > * {
    flex: 1 1 300px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .webform-submission-form {
        padding: 1rem;
    }
    
    .flexbox > * {
        flex: 1 1 100%;
    }
    
    .head5 {
        font-size: 1.5rem;
    }
}

/* CAPTCHA Container */
.captcha {
    background: #f7f9fc;
    padding: 1rem;
    border-radius: 4px;
    margin: 1.5rem 0;
}