/* Cyrus Application Form Styles */

:root {
    --primary-color: #d21859;
    --primary-light: #f14b82;
    --primary-dark: #a0134a;
    --neutral-dark: #333333;
    --neutral-medium: #666666;
    --neutral-light: #f5f5f5;
    --box-shadow: 0 8px 30px rgba(210, 24, 89, 0.1);
    --transition: all 0.3s ease;
}

.cyrus-application-form-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    box-shadow: var(--box-shadow);
    border-radius: 10px;
    font-family: 'IRANYekanWeb', 'Poppins', 'Helvetica Neue', Arial, sans-serif;
    color: var(--neutral-dark);
    position: relative;
    overflow: hidden;
}

.cyrus-application-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
}

/* Progress Steps */
.form-progress {
    margin-bottom: 40px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    padding: 0;
    margin: 0 0 30px;
    list-style: none;
    flex-direction: row-reverse;
}

.progress-steps .step {
    flex: 1;
    text-align: center;
    font-size: 14px;
    color: var(--neutral-medium);
    position: relative;
    padding-bottom: 20px;
    transition: var(--transition);
}

.progress-steps .step::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #eee;
    z-index: 1;
    transition: var(--transition);
}

.progress-steps .step::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #eee;
    border: 2px solid #fff;
    z-index: 2;
    transition: var(--transition);
}

.progress-steps .step.completed-path::before {
    background-color: var(--primary-color);
}

.progress-steps .step.completed-path::after {
    background-color: var(--primary-color);
}

.progress-steps .step.active {
    color: var(--primary-color);
    font-weight: 600;
}

.progress-steps .step.active::after {
    background-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(210, 24, 89, 0.2);
}

/* Form Sections */
.form-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

.form-section.active {
    display: block;
}

.form-section h2 {
    text-align: end;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.form-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.form-section h3 {
    text-align: end;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--neutral-dark);
    font-size: 18px;
    font-weight: 500;
}

.form-section h4 {
    direction: rtl;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--neutral-medium);
    font-size: 16px;
    font-weight: 500;
}

.form-description {
    font-weight: 400;
    direction: rtl;
    margin-bottom: 25px;
    color: var(--neutral-medium);
    font-size: 15px;
    line-height: 1.6;
}

/* Form Fields */
.form-field {
    margin-bottom: 24px;
}

.form-field label {
    unicode-bidi: plaintext;
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--neutral-dark);
    font-size: 16px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="url"],
.form-field input[type="date"],
.form-field textarea,
.form-field select {
    text-align: end;
    width: 96%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    color: var(--neutral-dark);
    transition: var(--transition);
    background-color: var(--neutral-light);
    font-family: inherit;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(210, 24, 89, 0.1);
    background-color: #fff;
}

.form-field textarea {
    width: 96%;
    min-height: 100px;
    resize: vertical;
}

.form-field.error input,
.form-field.error textarea,
.form-field.error select {
    border-color: #e74c3c;
}

.form-field .error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 0;
}

.form-field .field-hint {
    font-weight: 400;
    direction: rtl;
    color: var(--neutral-medium);
    font-size: 13px;
    margin-top: 5px;
    margin-bottom: 0;
    font-style: italic;
}

/* Styles for multi-column rows */
.form-row {
    flex-direction: row-reverse;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 0;
}

.form-field-third {
    flex-grow: 0;
    flex-shrink: 1;
    flex-basis: calc((100% - 40px) / 3);
    box-sizing: border-box;
    min-width: 150px;
}

.form-field-half {
    flex-grow: 0;
    flex-shrink: 1;
    flex-basis: calc((100% - 20px) / 2);
    box-sizing: border-box;
    min-width: 180px;
}

/* Ensure input fields within these containers take full width of their container */
.form-row .form-field input[type="text"],
.form-row .form-field input[type="email"],
.form-row .form-field input[type="tel"],
.form-row .form-field input[type="url"],
.form-row .form-field input[type="date"],
.form-row .form-field textarea,
.form-row .form-field .custom-select-options {
    width: 90%;
}

/* Ensure individual form fields within rows still have their bottom margin */
.form-row .form-field {
    margin-bottom: 24px; 
}

/* Checkbox Styles */
.form-field.checkbox {
    display: flex;
    align-items: flex-start;
}

.form-field.checkbox input[type="checkbox"] {
    margin-top: 4px;
    margin-right: 10px;
}

.form-field.checkbox label {
    margin-bottom: 0;
    font-weight: normal;
}

/* Checkbox Group Styles */
.checkbox-options {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    background-color: var(--neutral-light);
    padding: 12px 15px;
    border-radius: 6px;
    min-width: 120px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.checkbox-option:hover {
    background-color: #fff;
    border-color: var(--primary-light);
}

.checkbox-option input[type="checkbox"] {
    margin-right: 10px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    outline: none;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.checkbox-option input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-option input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-option label {
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-option input[type="checkbox"]:checked + label {
    font-weight: 500;
    color: var(--primary-color);
}

/* Skill Rating Slider */
/* .skill-rating { ... } */
/* .skill-rating::before { ... } */
/* .skill-rating > label, ... { ... } */
/* .rating-slider { ... } */
/* .rating-slider input[type="range"] { ... } */ /* Old styles for range input if any */
/* .rating-slider input[type="range"]::-webkit-slider-thumb { ... } */
/* .rating-slider input[type="range"]::-moz-range-thumb { ... } */
/* .rating-value { ... } */ /* Old .rating-value, now use .skill-value-display */

/* ADD Styles for Simple Skill Sliders */
.skill-rating-simple {
    /* Replaces .skill-rating. Basic structure if needed. */
    padding: 10px 0; /* Minimal padding */
    margin-bottom: 15px;
}

.simple-slider-container {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 5px;
}

input[type="range"].simple-skill-slider {
    flex-grow: 1;
    height: 8px; 
    /* background: #e0e0e0; */ /* Original solid background track */
    background: linear-gradient(to right, var(--primary-color) var(--slider-fill-percentage, 0%), #e0e0e0 var(--slider-fill-percentage, 0%));
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none; 
    appearance: none;
    cursor: pointer;
    margin-right: 15px; 
}

input[type="range"].simple-skill-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

input[type="range"].simple-skill-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none; /* Reset default border */
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.skill-value-display {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 25px; /* Ensure space for '10' */
    text-align: left; /* For RTL, this will be to the left of the number */
    font-size: 15px;
}

/* Navigation Buttons */
.form-navigation {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
}

.form-navigation button {
    padding: 12px 28px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    font-family: 'IRANYekanWeb', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.form-navigation button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.form-navigation button:active::after {
    width: 300px;
    height: 300px;
}

.form-navigation .prev-btn {
    background-color: var(--neutral-light);
    color: var(--neutral-dark);
}

.form-navigation .next-btn,
.form-navigation .submit-btn {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(210, 24, 89, 0.3);
}

.form-navigation .prev-btn:hover {
    background-color: #e0e0e0;
}

.form-navigation .next-btn:hover,
.form-navigation .submit-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(210, 24, 89, 0.4);
}

.form-navigation button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Review Section */
#application-summary {
    margin-bottom: 30px;
    column-count: 2; /* Default to 2 columns */
    column-gap: 25px; /* Space between columns */
    width: 100%;
}

.summary-section {
    background-color: #fff; 
    border: 1px solid #e0e0e0; 
    border-radius: 8px; 
    padding: 20px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.07); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 25px; /* Add margin for spacing between items in a column */
    break-inside: avoid-column; /* Try to prevent cards from breaking across columns */
    display: inline-block; /* Needed for column flow with break-inside */
    width: 100%; 
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.summary-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.summary-section h3 { /* Styling for card titles */
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 17px; /* Slightly smaller for compactness */
    color: var(--primary-color);
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
    text-align: right; /* Ensure RTL text alignment */
}

.summary-section h4 { /* Styling for sub-titles within cards */
    margin-top: 15px;
    margin-bottom: 8px;
    font-size: 15px; /* Slightly smaller */
    color: var(--neutral-dark);
    font-weight: 500;
    text-align: right; /* Ensure RTL text alignment */
}

.summary-section p {
    unicode-bidi: plaintext;
    margin: 6px 0; /* Tighter vertical spacing */
    line-height: 1.5; /* Adjusted for compactness */
    color: var(--neutral-dark); 
    font-weight: 400; /* Normal weight for answers */
    font-size: 14px; /* Slightly smaller font for details */
    text-align: right; /* Ensure RTL text alignment */
}

.summary-section p strong { /* Styling for labels within cards */
    font-size: 14px; /* Match answer font size */
    color: var(--neutral-medium); 
    font-weight: 500; /* Slightly bolder labels */
    margin-left: 6px; 
}

/* Adjust list styling in summary cards */
.summary-section ul {
    padding-right: 15px; /* Slightly reduced indent for RTL */
    margin-top: 4px;
    margin-bottom: 8px;
    font-size: 14px; /* Match p font size */
    list-style-position: outside;
}

.summary-section ul li {
    margin-bottom: 3px; /* Tighter list item spacing */
    color: var(--neutral-medium);
    text-align: right; /* Ensure RTL text alignment */
}

/* Success/Error Messages */
.form-messages {
    margin-top: 30px;
}

.success-message,
.error-message {
    text-align: end;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease;
}

.success-message {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
    color: #2e7d32;
}

.error-message {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
    color: #c62828;
}

.success-message h3,
.error-message h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Required Field Indicator */
.required {
    color: var(--primary-color);
    margin-left: 3px;
}

/* Skill Grid Layout */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0 30px;
    margin-bottom: 20px;
}

.skill-column {
    flex: 1;
    min-width: 250px;
}

/* Horizontal Checkbox Options */
.checkbox-options.horizontal {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 15px;
}

.checkbox-options.horizontal .checkbox-option {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.checkbox-options.horizontal .checkbox-option input[type="checkbox"] {
    margin-right: 8px;
}

/* File Upload Styles */
.upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    justify-content: flex-end;
}

.files-summary {
    width: 100%;
    background-color: #f8f8f8;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--neutral-dark);
    text-align: center;
    border: 1px solid #eee;
}

.file-preview {
    position: relative;
    width: 120px;
    height: 120px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.file-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.file-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.file-preview .file-type {
    font-size: 12px;
    color: var(--neutral-medium);
    text-align: center;
    padding: 5px;
    background-color: #e0e0e0;
    border-radius: 3px;
    font-weight: bold;
    margin-bottom: 5px;
}

.file-preview .file-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px;
    font-size: 10px;
    display: flex;
    flex-direction: column;
}

.file-preview .file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    padding-bottom: 2px;
}

.file-preview .file-size {
    text-align: center;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.8);
}

input[type="file"] {
    padding: 10px;
    border: 1px dashed #ddd;
    border-radius: 6px;
    background-color: var(--neutral-light);
    width: 97%;
    cursor: pointer;
}

/* File Upload Progress Bar */
.upload-progress-container {
    margin-top: 15px;
    margin-bottom: 15px;
    width: 100%;
    position: relative;
    padding: 10px;
    background-color: #f8f8f8;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.upload-progress-bar {
    height: 16px;
    background-color: #f0f0f0;
    border-radius: 8px;
    padding: 1px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.upload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    background-size: 200% auto;
    border-radius: 8px;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.22, 0.61, 0.36, 1); /* Smoother transition */
    animation: shine 2s infinite;
    box-shadow: 0 0 5px rgba(210, 24, 89, 0.3);
    position: relative;
}

/* Add an animated pulse effect when progress is active */
@keyframes progressPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(210, 24, 89, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(210, 24, 89, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(210, 24, 89, 0);
    }
}

.upload-progress-fill.pulsing {
    animation: shine 2s infinite, progressPulse 2s infinite;
}

.upload-progress-text {
    text-align: center;
    font-size: 14px;
    margin-top: 8px;
    color: var(--neutral-dark);
    font-weight: 600;
    position: relative;
    text-shadow: 0px 0px 3px rgba(255, 255, 255, 0.8); /* Make text more legible */
}

/* Success Modal Enhanced Animations */
.modal {
    display: none; /* Hidden by default, JS changes to 'flex' */
    position: fixed;
    z-index: 1000;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    box-sizing: border-box;
    transition: opacity 300ms ease-in-out; /* Smooth overlay fade */
    opacity: 0;
}

.modal-content {
    direction: rtl;
    background-color: #fefefe;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7) translateY(30px); /* Initial state: smaller and slightly down */
    transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1), opacity 400ms cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    padding: 75px;
    border: 1px solid #ddd;
    width: 100%; 
    max-width: 1040px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    font-family: 'IRANYekanWeb', 'Poppins', 'Helvetica Neue', Arial, sans-serif;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    text-align: center;
}

/* Show modal animation classes */
.modal.show-modal {
    opacity: 1;
}

.modal.show-modal .modal-content {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) translateY(0);
}

/* Staged content animations */
.modal-icon-circle {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 300ms ease-out 250ms, transform 300ms ease-out 250ms;
}

.modal-title {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 300ms ease-out 300ms, transform 300ms ease-out 300ms;
}

.modal-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 300ms ease-out 350ms, transform 300ms ease-out 350ms;
}

.modal-button {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 300ms ease-out 400ms, transform 300ms ease-out 400ms, background-color 0.3s, transform 0.3s;
}

/* When modal is shown, animate the content */
.modal.show-modal .modal-icon-circle,
.modal.show-modal .modal-title,
.modal.show-modal .modal-text,
.modal.show-modal .modal-button {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced button hover effects */
.modal-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(210, 24, 89, 0.3);
}

.modal-content.rtl-modal-content {
    direction: rtl;
    text-align: right;
}

.modal-content.rtl-modal-content h2 {
    text-align: center;
    margin-bottom: 25px; /* More space below title */
    color: var(--primary-color);
    font-size: 20px; /* Slightly larger title */
}

.modal-content.rtl-modal-content ul {
    list-style-type: none;
    padding-right: 0;
    max-height: 50vh; /* Max height for scrollability */
    overflow-y: auto; /* Enable scroll for long content */
    margin-bottom: 25px; /* Space before buttons */
}

.modal-content.rtl-modal-content ul li {
    font-weight: 400;
    margin-bottom: 12px; /* More space between items */
    line-height: 1.7;
    font-size: 15px;
    padding-right: 25px;
    position: relative;
}

.modal-content.rtl-modal-content ul li::before {
    content: "\2022";
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block; 
    position: absolute;
    right: 0;
    top: 1px; /* Fine-tune bullet position */
}

.project-terms-buttons {
    display: flex;
    justify-content: center; /* Center buttons */
    gap: 15px; /* Space between buttons */
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee; /* Separator line */
}

.project-terms-buttons button {
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    font-family: 'IRANYekanWeb', sans-serif;
    cursor: pointer;
    transition: var(--transition);
}

.project-terms-buttons .agree-btn {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 3px 10px rgba(210, 24, 89, 0.25);
}

.project-terms-buttons .agree-btn:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 5px 15px rgba(210, 24, 89, 0.35);
    transform: translateY(-1px);
}

.project-terms-buttons .disagree-btn {
    background-color: var(--neutral-light);
    color: var(--neutral-dark);
    border: 1px solid #ccc;
}

.project-terms-buttons .disagree-btn:hover {
    background-color: #e0e0e0;
    border-color: #bbb;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.modal-icon-circle {
    width: 0px;
    height: 0px;
    border-radius: 50%;
    background-color: var(--primary-color); /* Or a success green like #4CAF50 */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto 50px;
    box-shadow: 0 4px 15px rgba(210, 24, 89, 0.3); /* Shadow for the circle */
}

.modal-icon-circle img {
    max-width: 130px; /* Adjust as needed */
    max-height: 40px; /* Adjust as needed */
}

.modal-title {
    text-align: center;
    font-size: 22px;
    color: var(--neutral-dark);
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

.modal-text {
    font-weight: 400;
    text-align: center;
    font-size: 15px;
    color: var(--neutral-medium);
    line-height: 1.6;
    margin-bottom: 35px;
}

.modal-button {
    padding: 12px 35px;
    margin-bottom: 15px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(210, 24, 89, 0.2);
}

.modal-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(210, 24, 89, 0.3);
}

/* Loading Overlay Styles */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.spinner {
    border: 6px solid #f3f3f3; /* Light grey */
    border-top: 6px solid var(--primary-color); /* Pink */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    direction: rtl;
    font-size: 16px;
    color: var(--neutral-dark);
    font-weight: 500;
    margin-top: 10px;
    text-align: center;
}

/* Custom Selectable Options (Dropdown Replacement) */
.custom-select-options {
    display: flex;
    flex-wrap: wrap; /* Allow options to wrap if many */
    gap: 10px; /* Space between options */
    margin-top: 8px;
    margin-bottom: 8px;
    flex-direction: row-reverse;
}

.custom-option {
    flex: auto;
    text-align: center;
    padding: 12px 18px;
    background-color: var(--neutral-light);
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 15px;
    color: var(--neutral-dark);
    user-select: none; /* Prevent text selection on click */
}

.custom-option:hover {
    border-color: var(--primary-light);
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.custom-option.selected {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(210, 24, 89, 0.2);
}

/* Error state for custom select (applied to the hidden input) */
input[type="hidden"].error + .custom-select-options {
    /* You might want to indicate error on the container or options */
}

input[type="hidden"].error + .custom-select-options .custom-option:first-child {
    /* Specifically target the placeholder if it's part of the error indication */
    /* border-color: #e74c3c !important; */ /* Example error border on placeholder */
    /* color: #e74c3c !important; */
}

/* About Us Section Content */
.about-us-header {
    margin-top: 70px;
    text-align: center;
}

.about-us-logo {
    background: #000;
    max-width: 120px;
    padding: 6px 12px 6px 11px;
    height: fit-content;
    margin-bottom: 18px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-section[data-section="1"] h2 { /* Target About Us H2 specifically if needed */
    text-align: center;
    color: var(--primary-dark); /* Darker shade for emphasis */
    font-size: 26px; /* Larger title */
    margin-bottom: 0; /* Handled by header margin */
}

.form-section[data-section="1"] h2::after {
    right: 50%; /* Center the underline */
    transform: translateX(50%);
    width: 60px; /* Wider underline */
    height: 3.5px;
}

.about-us-content {
    padding: 10px 0;
    line-height: 1.8;
    font-size: 16px; /* Slightly larger base font for readability */
    text-align: center; /* Center the text content */
}

.about-us-description {
    margin-bottom: 30px; /* More space before links */
    color: var(--neutral-dark);
    padding: 0 15px; /* Add some horizontal padding if text is too wide */
}

.about-us-links {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center;
    gap: 15px; /* Space between buttons */
    margin-top: 20px;
}

.about-us-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background-color: #fff; /* White background */
    color: var(--primary-color); /* Main color text */
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color); /* 1px border with main color */
    box-shadow: 0 2px 4px rgba(0,0,0,0.08); /* Subtle shadow for a cleaner look */
}

.about-us-button:hover {
    background-color: var(--primary-color); /* Main color background on hover */
    color: #fff; /* White text on hover */
    transform: translateY(-2px); /* Keep the slight lift effect */
    box-shadow: 0 4px 8px rgba(210, 24, 89, 0.2); /* Adjusted shadow for hover */
    border-color: var(--primary-color); /* Ensure border remains consistent or matches bg */
}

/* Ensure specific social media button styles are overridden or remain commented out for unified look */
.about-us-button.linkedin-button {
    /* background-color: #0077b5; */ 
    /* box-shadow: 0 4px 12px rgba(0, 119, 181, 0.25); */
    /* Any specific text/border color for these should also be removed if they existed */
}
.about-us-button.linkedin-button:hover {
    /* background-color: #005582; */
    /* box-shadow: 0 6px 18px rgba(0, 119, 181, 0.35); */
}

.about-us-button.instagram-button {
    /* background-color: #E1306C; */
    /* box-shadow: 0 4px 12px rgba(225, 48, 108, 0.25); */
}
.about-us-button.instagram-button:hover {
    /* background-color: #c11c57; */
    /* box-shadow: 0 6px 18px rgba(225, 48, 108, 0.35); */
}

.about-us-button.whatsapp-button {
    /* background-color: #25D366; */
    /* box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25); */
}
.about-us-button.whatsapp-button:hover {
    /* background-color: #1EAE54; */
    /* box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35); */
}

.about-us-content h4 {
    margin-top: 25px;
    margin-bottom: 10px;
    color: var(--neutral-dark);
    font-size: 17px;
    font-weight: 600;
}

.about-us-content p {
    text-align: center;
    font-weight: 400;
    margin-bottom: 40px;
}

.about-us-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.about-us-content a:hover {
    color: #fff;
}

/* General RTL Content Styling */
.rtl-content {
    direction: rtl;
    text-align: right;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .cyrus-application-form-container {
        padding: 20px;
        margin: 20px auto;
    }
    
    .progress-steps {
        flex-wrap: wrap;
    }
    
    .progress-steps .step {
        flex: 0 0 33.333%;
        margin-bottom: 15px;
    }
    
    .form-navigation {
        flex-direction: column;
    }
    
    .form-navigation button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .checkbox-options {
        flex-direction: column;
        gap: 8px;
    }
    
    .checkbox-option {
        width: 100%;
    }
    
    .skills-grid {
        flex-direction: column;
    }
    
    .checkbox-options.horizontal {
        flex-wrap: wrap;
    }

    .skill-value-display {
        font-size: 14px;
    }

    .modal-content {
        width: 90% !important;
        max-width: 500px !important;
        padding: 25px !important;
    }

    .modal-icon-circle {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }

    .modal-icon-circle img {
        max-width: 35px;
        max-height: 35px;
    }

    .modal-title {
        font-size: 20px;
    }

    .modal-text {
        font-size: 14px;
    }

    .form-section {
        padding: 20px 15px;
    }

    .form-progress ul {
        padding: 10px 0;
    }

    .form-progress .step {
        font-size: 11px;
        padding: 8px 5px;
    }

    input[type="range"].simple-skill-slider {
        margin-right: 10px; /* Adjust space for smaller screens */
    }

    .form-row {
        flex-direction: column; /* Stack fields in a row on small screens */
        gap: 0; /* Remove gap when stacked, margin-bottom on .form-field handles spacing */
    }

    .form-field-third,
    .form-field-half {
        flex-basis: 100%; /* Full width when stacked */
        min-width: 0; /* Reset min-width */
    }

    #application-summary {
        column-count: 1; /* Single column on smaller screens */
    }
}

/* Review file previews */
.review-file-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
}

.review-thumbnail-container, .review-file-item {
    width: 120px;
    height: 120px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    background: #f9f9f9;
}

.review-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 14px;
}

.file-type-indicator {
    width: 100%;
    height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background-color: #3498db;
}

.review-file-item .file-info {
    height: 30%;
    padding: 5px;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: #fff;
}

.review-thumbnail-container .file-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 5px;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* Form Submission Progress Bar */
.form-submission-progress {
    width: 80%;
    max-width: 500px;
    margin: 0 auto 25px;
}

.submission-progress-container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.submission-progress-bar {
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    padding: 2px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.submission-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 8px;
    width: 0%;
    transition: width 0.5s ease;
    animation: shine 2s infinite;
    box-shadow: 0 0 8px rgba(210, 24, 89, 0.4);
}

.submission-progress-text {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    margin-top: 12px;
    color: var(--primary-color);
}

/* Missing shine animation keyframes */
@keyframes shine {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Fix for age input field width */
input[type="number"]#age {
    width: 100%;
    min-height: 45px;
    padding: 10px 15px;
    border-radius: 5px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    outline: none;
    transition: border-color 0.3s ease;
}

input[type="number"]#age:focus {
    border-color: #8e44ad;
    box-shadow: 0 0 0 2px rgba(142, 68, 173, 0.2);
} 