.customer-type-radio {
    display: flex;
    gap: 30px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.customer-type-radio label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    position: relative;
    z-index: 1;
}

.customer-type-radio label:hover {
    background-color: #f0f0f0;
}

.customer-type-radio input[type="radio"] {
    margin: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

/* Checkbox styling */
.form-check-input {
    margin: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-right: 10px;
    position: relative;
    z-index: 2;
}

/* Consent section styling */
.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 15px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.consent-checkbox label {
    margin: 0;
    line-height: 1.5;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    flex: 1;
    position: relative;
    z-index: 1;
}

.consent-checkbox input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.form-section h3 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.phone-row {
    display: flex;
    gap: 10px;
}

.phone-prefix {
    flex: 0 0 120px;
}

.phone-number {
    flex: 1;
}

.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline;
}

.htmx-request.htmx-indicator {
    display: inline;
}

.form-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.field-error {
    border-color: #dc3545;
}

.embedded-form-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Form group improvements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    position: relative;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .customer-type-radio {
        flex-direction: column;
        gap: 15px;
    }

    .consent-checkbox {
        padding: 12px;
    }
}