/* =============================================================
   INTAKE FORM STYLES - FINAL & COMPLETE
   (Mobile-First, Responsive, and Fully Corrected)
   ============================================================= */

/* --- 1. Main Form Container --- */
#intakeform {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
    margin: 2rem auto 4rem auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background-color: #ffffff;
    box-shadow: var(--box-shadow);
}

/* --- 2. Section Headers --- */
.form-section h2 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.form-section p {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* --- 3. Form Groups and General Labels --- */
.form-group {
    margin-bottom: 1.5rem;
}
#intakeform label {
    font-weight: bold;
    color: var(--primary-color);
    text-align: left;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: block;
}

/* --- 4. Text Inputs and Textareas --- */
#intakeform input[type="text"],
#intakeform input[type="email"],
#intakeform input[type="url"],
#intakeform textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--cta-border-radius);
    font-size: 1rem;
    color: var(--text-color);
    font-family: var(--font);
}

/* --- 5. Fieldset and Legend Reset (for Accessibility) --- */
fieldset {
    border: none;
    padding: 0;
    margin: 0;
}
legend {
    padding: 0;
    width: 100%;
}

/* --- 6. Boxed Service Selection (Radio Buttons) --- */
.radio-option label.service-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 1rem;
    border-radius: var(--cta-border-radius);
    border: 1px solid #e0e0e0;
    margin-bottom: 10px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    font-weight: normal; /* Override bold label style */
}
.radio-option label.service-info:hover {
    background-color: #f8f9fa;
    border-color: #ccc;
}
.radio-option input[type="radio"] {
    margin-top: 0.25em;
    accent-color: var(--secondary-color);
    flex-shrink: 0;
}
.service-info {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.service-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.service-title strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}
.price-tag {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}
.price-tag.vat-inclusive {
    background-color: #e6f9f1;
    color: #0b7a4a;
}
.price-tag.vat-exclusive {
    background-color: #fff5e6;
    color: #b86600;
}
.service-description {
    font-size: 0.9em;
    color: #6c757d;
    font-weight: 400;
    line-height: 1.5;
}

/* --- 7. Simple Checkbox Options --- */
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.checkbox-option label {
    font-weight: normal;
    margin-bottom: 0;
}
.checkbox-option input[type="checkbox"] {
    accent-color: var(--secondary-color);
    flex-shrink: 0;
}

/* --- 8. Submission Buttons --- */
.submit-section {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.submit-section .styled-button,
#submit-button {
    width: 100%;
    max-width: 320px;
    margin: 0;
}
#submit-button:disabled {
    background-color: #ced4da;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
/* Style for the active submit button on hover */
#submit-button:not(:disabled):hover {
    background-color: #c09c2c;
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* --- 9. Confirmation Message --- */
.confirmation-message {
    display: none;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid #a3e9d1;
    background-color: #e6f9f1;
    color: #0b7a4a;
    border-radius: var(--border-radius);
}

/* --- 10. Responsive Adjustments --- */
@media (min-width: 768px) {
    #intakeform {
        padding: 40px;
    }
    .submit-section {
        flex-direction: row;
        justify-content: center;
    }
    .submit-section .styled-button,
    #submit-button {
        width: auto;
    }
}
