/* Custom styles for dynamic forms */

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

.form-field {
    margin-bottom: 1.5rem;
}

.field-wrapper {
    position: relative;
}

.field-wrapper .form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.field-wrapper .text-danger {
    color: #dc3545;
    margin-left: 0.25rem;
}

/* Standardized placeholder text styling - light and subtle */
input::placeholder,
textarea::placeholder,
select:invalid,
.form-control::placeholder,
.form-select:invalid {
    color: #adb5bd !important;
    opacity: 0.6 !important;
    font-style: italic;
}

/* Webkit browsers (Chrome, Safari, Edge) */
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    color: #adb5bd !important;
    opacity: 0.6 !important;
    font-style: italic;
}

/* Firefox */
input::-moz-placeholder,
textarea::-moz-placeholder {
    color: #adb5bd !important;
    opacity: 0.6 !important;
    font-style: italic;
}

/* Microsoft Edge */
input::-ms-input-placeholder,
textarea::-ms-input-placeholder {
    color: #adb5bd !important;
    opacity: 0.6 !important;
    font-style: italic;
}

.form-check-group {
    padding-top: 0.5rem;
}

.form-check {
    margin-bottom: 0.75rem;
}

.html-content {
    padding: 1rem 0;
}

.html-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.html-content p {
    color: #6c757d;
    margin-bottom: 1rem;
}

/* Progress bar customization */
.progress {
    height: 30px;
    font-size: 0.875rem;
}

.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0d6efd;
    transition: width 0.6s ease;
}

/* Form navigation buttons */
.form-footer {
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

/* Validation styling */
.is-invalid {
    border-color: #dc3545;
}

.is-valid {
    border-color: #198754;
}

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

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

/* Confirmation message styling */
.confirmation-message {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
}

.confirmation-message h3 {
    color: #198754;
    margin-bottom: 0.5rem;
}

/* Success alert styling - ensure high contrast and visibility */
.alert-success {
    background-color: #d1e7dd !important;
    border: 2px solid #0f5132 !important;
    color: #0f5132 !important;
    padding: 1.5rem !important;
    font-size: 1rem !important;
}

.alert-success h4 {
    color: #0f5132 !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    font-size: 1.5rem !important;
}

.alert-success p {
    color: #0f5132 !important;
    margin-bottom: 0 !important;
}

/* Card styling for demo page */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Debug panel */
pre {
    background-color: #f8f9fa;
    padding: 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
}

/* Survey field styling */
.survey-field.single-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.survey-field.single-row .survey-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.survey-field.single-row .survey-option input[type="radio"] {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.survey-field.single-row .survey-option label {
    margin: 0;
    cursor: pointer;
    font-weight: normal;
}
