/* NEWGEN Patient Intake Form Styles */

.newgen-intake-container {

}

.newgen-intake-wrapper {

}

/* Form Title */
.newgen-form-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
    line-height: 1.2;
}

/* Progress Bar */
.newgen-progress-container {
    margin-bottom: 30px;
}

.newgen-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #6b7280;
}

.newgen-progress-percentage {
    color: #16a34a;
    font-weight: 600;
}

.newgen-progress-bar {
    width: 100%;
    height: 6px;
    background-color: #d1d5db;
    border-radius: 3px;
    overflow: hidden;
}

.newgen-progress-fill {
    height: 100%;
    background-color: #16a34a;
    transition: width 0.3s ease;
}

/* Step Content */
.newgen-form-step {
    display: none;
}

.newgen-form-step.active {
    display: block;
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step Heading */
.newgen-step-heading {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.newgen-step-divider {
    border-top: 1px solid #e5e7eb;
    margin: 10px 0 20px;
}

/* Form Groups */
.newgen-form-group {
    margin-bottom: 25px;
}

.newgen-form-row {
    display: grid;
    gap: 10px;
}

.newgen-form-row.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.newgen-form-row.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.newgen-form-row.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.newgen-form-row.grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

/* Form Field */
.newgen-form-field {
    display: flex;
    flex-direction: column;
}

.newgen-form-field label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    display: block;
}

.newgen-form-field label .required {
    color: #ef4444;
    margin-left: 4px;
    font-weight: 700;
}

.newgen-form-field input,
.newgen-form-field select,
.newgen-form-field textarea {
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 15px;
    color: #374151;
    font-family: inherit;
    background-color: #ffffff !important;
    transition: border-color 0.3s, box-shadow 0.3s, background-color 0.2s;
    width: 100%;
    box-sizing: border-box;
	margin: 0px !important;
}

.newgen-form-field input::placeholder {
    color: #9ca3af;
}

.newgen-form-field input:focus,
.newgen-form-field select:focus,
.newgen-form-field textarea:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.08);
    background-color: #fafafa;
}

.newgen-form-field.error input,
.newgen-form-field.error select,
.newgen-form-field.error textarea {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.newgen-form-field.error input:focus,
.newgen-form-field.error select:focus,
.newgen-form-field.error textarea:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.newgen-form-field.error .error-message {
    color: #dc2626;
    font-size: 13px;
    font-weight: 500;
}

/* Checkbox and Radio */
.newgen-checkbox-group,
.newgen-radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 10px 0;
}

.newgen-checkbox-item,
.newgen-radio-item {
    display: flex;
    align-items: normal;
    gap: 8px;
    cursor: pointer;
}

.newgen-checkbox-item input,
.newgen-radio-item input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #16a34a;
}

.newgen-checkbox-item label,
.newgen-radio-item label {
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    margin: 0;
}

/* Textarea */
.newgen-form-field textarea {
    resize: vertical;
    min-height: 100px;
}

/* Buttons */
.newgen-button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.newgen-button {
    flex: 1;
    min-width: 150px;
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.5;
    letter-spacing: 0.5px;
}

.newgen-btn-primary {
    background-color: #16a34a;
    color: white;
    box-shadow: 0 2px 4px rgba(22, 163, 74, 0.2);
}

.newgen-btn-primary:hover {
    background-color: #15803d;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
    transform: translateY(-2px);
}

.newgen-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(22, 163, 74, 0.2);
}

.newgen-btn-secondary {
    background-color: transparent;
    color: #16a34a;
    border: 2px solid #16a34a;
}

.newgen-btn-secondary:hover {
    background-color: #f0fdf4;
    border-color: #15803d;
    color: #15803d;
}

.newgen-btn-secondary:active {
    transform: scale(0.98);
}

.newgen-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success Container */
.newgen-success-container {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #86efac;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
}

.newgen-success-header {
    margin-bottom: 20px;
}

.newgen-success-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #166534;
}

.newgen-success-header p {
    color: #16a34a;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .newgen-form-row.grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .newgen-form-row.grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
   

    .newgen-form-title {
        font-size: 26px;
        margin-bottom: 15px;
    }

    .newgen-form-row.grid-2,
    .newgen-form-row.grid-3,
    .newgen-form-row.grid-4 {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .newgen-button-group {
        flex-direction: column;
    }

    .newgen-button {
        padding: 12px 20px;
        font-size: 15px;
        min-width: auto;
    }

    .newgen-checkbox-group,
    .newgen-radio-group {
        grid-template-columns: 1fr;
    }

    .newgen-step-heading {
        font-size: 18px;
    }

    .newgen-progress-container {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {

    .newgen-form-title {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .newgen-button {
        padding: 11px 16px;
        font-size: 14px;
    }

    .newgen-form-field input,
    .newgen-form-field select,
    .newgen-form-field textarea {
      
    }

    .newgen-form-field label {
        font-size: 13px;
        margin-bottom: 6px;
    }
}

/* Success/Error Messages */
.newgen-message {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.newgen-message.success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.newgen-message.error {
    background-color: #fee2e2;
    color: #7f1d1d;
    border: 1px solid #fca5a5;
}

/* Loading State */
.newgen-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(22, 163, 74, 0.1);
    border-top: 3px solid #16a34a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}