/* css/form.css */

.form-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    font-family: 'Prompt', sans-serif;
    background-color: #fff;
}

.form-container h2 {
    font-size: 24px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
    color: #333;
}

/* --- Form Group Styling (Agent & Insurance Forms) --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.form-group .required {
    color: #d9534f;
    font-weight: bold;
    margin-left: 3px;
}

/* --- Input Fields --- */
.form-container input[type="text"],
.form-container input[type="tel"],
.form-container input[type="email"],
.form-container input[type="date"],
.form-container textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-family: 'Prompt', sans-serif;
    font-size: 15px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s;
    color: #333;
}

.form-container input:focus,
.form-container textarea:focus {
    border-color: #9ca3af;
}

.form-container textarea {
    resize: vertical;
    min-height: 120px;
}

.form-container input::placeholder,
.form-container textarea::placeholder {
    color: #9ca3af;
}

/* --- Radio Buttons --- */
.radio-group {
    margin-top: 10px;
}

.radio-group.vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    color: #333;
}

.radio-label input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b82f6;
}

/* --- Form Policy Checkbox --- */
.form-policy {
    margin: 30px 0;
    text-align: center;
}

.checkbox-label {
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    color: #333;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
}

.checkbox-label a {
    color: #333;
    text-decoration: underline;
    margin-left: 5px;
}

/* --- Submit Buttons --- */
.form-actions {
    text-align: center;
    margin-top: 30px;
}

.btn-submit {
    padding: 10px 40px;
    font-size: 16px;
    font-family: 'Prompt', sans-serif;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: #e5e7eb;
    color: #4b5563;
    font-weight: 600;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.btn-submit.backend-blue {
    background-color: #7ab8e3;
    color: white;
}

.btn-submit.backend-blue:hover {
    background-color: #63a5d6;
}

/* --- Form Row Styling (Contact Form) --- */
.form-container.contact-general {
    max-width: 700px;
}

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

.form-row.align-top {
    align-items: flex-start;
}

.form-row label {
    width: 100px;
    font-weight: 700;
    font-size: 16px;
    text-align: right;
    padding-right: 20px;
    flex-shrink: 0;
    color: #333;
    margin-bottom: 0;
}

.form-row.align-top label {
    padding-top: 10px;
}

.form-row .field-input {
    flex-grow: 1;
}

/* Responsive adjustment for Contact Form */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-row label {
        width: 100%;
        text-align: left;
        padding-right: 0;
        margin-bottom: 8px;
    }
    
    .form-row .field-input {
        width: 100%;
    }
}