﻿/* forms.css - Form component styles extracted from inline styles */

/* Form groups and general styling */
.form-group {
    margin-bottom: 1.5rem;
    padding: 10px;
}



/* Required field indicator */
.required::after {
    content: " *";
    color: red;
}

/* Gap utilities */
.gap-2 {
    gap: 0.5rem;
}

/* Form layout for document editing */
.Document-form-container {
    max-height: 450px;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 50px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    margin-left: 200px;
    margin-right: 200px;
}

/* Wizard form styling (based on image 3) */
.wizard-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 2rem;
    margin: 0 auto;
}

.wizard-header {
    margin-bottom: 1.5rem;
}

.wizard-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.wizard-description {
    color: #6c757d;
    margin-bottom: 2rem;
}

.wizard-steps {
    display: flex;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.wizard-step {
    flex: 1;
    text-align: center;
    position: relative;
}

    .wizard-step:not(:last-child)::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: #e9ecef;
        top: 15px;
        left: 50%;
    }

.wizard-step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e9ecef;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    position: relative;
    z-index: 1;
}

.wizard-step.active .wizard-step-number {
    background-color: #0366d6;
    color: white;
    border-color: #0366d6;
}

.wizard-step.completed .wizard-step-number {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
}

.wizard-content {
    margin-bottom: 2rem;
}

.wizard-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid #dee2e6;
}

/* Field styling */
.field-group {
    margin-bottom: 1.5rem;
}

.field-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

    .field-label.required::after {
        content: " *";
        color: #dc3545;
    }

/* Multi-select dropdown styling */
.dropdown-menu.w-100 {
    max-height: 300px;
    overflow-y: auto;
}


   
/* Form buttons formatting */
.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

/* Specific form elements for creating numbered documents */
.format-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.scheme-section {
    margin-bottom: 2rem;
}

.document-types-section {
    margin-top: 2rem;
}

/* Document selector card */
.document-card {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

    .document-card:hover {
        border-color: #0366d6;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .document-card.selected {
        background-color: #e6f7ff;
        border-color: #0366d6;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .Document-form-container {
        margin-left: 15px;
        margin-right: 15px;
        padding: 15px;
    }

    .wizard-container {
        padding: 1rem;
    }

    .wizard-steps {
        flex-direction: column;
        gap: 0.5rem;
    }

    .wizard-step:not(:last-child)::after {
        display: none;
    }

    .format-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
