/* Survey Forms Specific Styles */

/* Progress Bar */
.progress-bar-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.progress-bar-container::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 1;
    position: relative;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    transform: scale(1.1);
}

.progress-step.completed .step-circle {
    background: #28a745;
    color: white;
}

.step-label {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
}

.progress-step.active .step-label {
    color: #ff6b35;
    font-weight: 600;
}

.progress-step.completed .step-label {
    color: #28a745;
}

/* Survey Form Container */
.survey-form-container {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.survey-form-container h2 {
    color: #002366;
    margin-bottom: 2rem;
    text-align: center;
}

/* Fieldset Styles */
fieldset {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

fieldset legend {
    color: #002366;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0 0.5rem;
}

fieldset > div {
    margin-bottom: 1rem;
}

fieldset > div:last-child {
    margin-bottom: 0;
}

/* Form Controls */
.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

/* Radio Buttons */
.form-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check-label {
    margin-bottom: 0;
    cursor: pointer;
}

/* Error Messages */
.errors {
    list-style: none;
    margin: 0.5rem 0 0 0;
    padding: 0;
}

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

.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
}

.alert-danger ul {
    margin: 0.5rem 0 0 1.5rem;
}

/* Button Group */
.button-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Review Page Styles */
.review-page-container {
    max-width: 900px;
}

.review-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #002366;
}

.review-card h3 {
    color: #002366;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.review-card p {
    margin: 0.5rem 0;
    line-height: 1.8;
}

.review-card strong {
    color: #555;
    display: inline-block;
    min-width: 200px;
}

/* Flash Messages in Forms */
.flash-messages-inline {
    margin-bottom: 1.5rem;
}

.flash-messages-inline .flash-message {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

/* Account Creation Fields */
.account-creation-fields {
    margin-top: 1rem;
    padding-left: 2rem;
    border-left: 3px solid #007bff;
}

.account-creation-fields p {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
}

/* Document Upload Section */
.document-upload-section {
    padding: 1rem 0;
}

.document-examples-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.document-examples-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.doc-tiles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.doc-tile {
    background: #e9ecef;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #333;
    border: 1px solid #ced4da;
}

.supported-types {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed #007bff;
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    background-color: #f8f9fa;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.drop-zone:hover {
    background-color: #e9ecef;
    border-color: #0056b3;
}

.drop-zone.dragover {
    background-color: #e7f3ff;
    border-color: #0056b3;
    border-style: solid;
}

.drop-zone p {
    margin: 0;
    font-size: 1.1rem;
}

/* File List */
#fileList {
    margin-top: 1rem;
}

#fileList h5 {
    color: #002366;
    margin-bottom: 0.75rem;
}

#fileList ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#fileList li {
    background-color: #fff;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Document Review List */
.document-review-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.document-review-list li {
    background-color: #f9f9f9;
    padding: 0.75rem 1rem;
    border: 1px solid #eee;
    margin-bottom: 0.5rem;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .progress-bar-container {
        padding: 0 1rem;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .survey-form-container {
        margin: 0 1rem 2rem;
    }

    fieldset {
        padding: 1rem;
    }

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

    .button-group a,
    .button-group button {
        width: 100%;
        text-align: center;
    }

    .review-card strong {
        min-width: auto;
        display: block;
        margin-bottom: 0.25rem;
    }

    .doc-tiles {
        flex-direction: column;
        align-items: stretch;
    }
}
