/* Simple, clean stylesheet for Recruit form */

:root {
    --primary-color: #4687af;
    --primary-hover: #3a6f8f;
    --text-color: #333;
    --text-muted: #666;
    --border-color: #ddd;
    --border-radius: 8px;
    --spacing: 1rem;
    --spacing-sm: 0.5rem;
    --spacing-lg: 1.5rem;
    --error-color: #dc3545;
    --success-color: #28a745;
    --bg-light: #f8f9fa;
}

* {
    box-sizing: border-box;
}
html {
    font-size: 14px;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: var(--spacing);
    background-color: var(--bg-light);
    background-image: url('../../Images/Recruit_BG.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing);
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo {
    width: 50px;
    height: 50px;
}

/* Step Progress */
.step-progress {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: var(--spacing);
}

.step-item {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -50%;
    top: 50%;
    width: 100%;
    height: 2px;
    background: var(--border-color);
    transform: translateY(-50%);
    z-index: 0;
}

.step-content-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    z-index: 1;
    background: white;
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
}

.step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--border-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-item.active .step-icon {
    background: var(--primary-color);
}

.step-title {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Step Form Visibility */
#validationFormContent > div {
    display: none;
}

#validationFormContent > div.active {
    display: block;
}

/* Form Card */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
}

.card-body {
    padding: var(--spacing-lg);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.form-grid-two {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.card-footer {
    padding: var(--spacing);
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing);
}

/* Form Elements */
.form-group {
    margin-bottom: var(--spacing);
}

.input-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9rem;
}

.input-label.required::after {
    content: " *";
    color: var(--error-color);
    font-weight: bold;
    margin-left: 2px;
}

.form-control:required,
.custom-select:required {
    border-left: 3px solid var(--primary-color);
    padding-left: calc(0.625rem - 3px);
}

.form-control:required:focus,
.custom-select:required:focus {
    border-left-color: var(--primary-color);
    padding-left: calc(0.625rem - 3px);
}
.custom-select,
select {

    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
}
.form-control,
.custom-select,
select {
    width: 100%;
    padding: .375rem .75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    background-color: white;
    padding-right: 2.5rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.tagify-form-control {
    height: unset;
}
.form-control:focus,
.custom-select:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(70, 135, 175, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* Select2 Dropdown Styling */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: auto;
    padding: 0.625rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: white;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-color);
    line-height: 1.5;
    padding-left: 0;
    padding-right: 1.5rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 0.5rem;
    top: 0;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--text-muted) transparent transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    height: 0;
    left: 50%;
    margin-left: -4px;
    margin-top: -2px;
    position: absolute;
    top: 50%;
    width: 0;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent var(--text-muted) transparent;
    border-width: 0 4px 5px 4px;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(70, 135, 175, 0.1);
    outline: none;
}

.select2-dropdown {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: white;
    margin-top: 0.25rem;
}

.select2-results__option {
    padding: 0.625rem;
    color: var(--text-color);
}

.select2-results__option--highlighted {
    background-color: var(--primary-color);
    color: white;
}

.select2-results__option[aria-selected="true"] {
    background-color: rgba(70, 135, 175, 0.1);
    color: var(--primary-color);
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    margin: 0.25rem;
    width: calc(100% - 0.5rem);
}

.select2-search--dropdown .select2-search__field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(70, 135, 175, 0.1);
}

/* Buttons */
.btn {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
}

.btn-next::after {
    content: " \2192";
    margin-left: 0.25rem;
    display: inline-block;
}

.btn-prev::before {
    content: "\2190 ";
    margin-right: 0.25rem;
    display: inline-block;
}

.btn-submit {
    background: linear-gradient(135deg, var(--success-color) 0%, #218838 100%);
    font-weight: 600;
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.btn-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-submit::before {
    content: "\2714 ";
    margin-right: 0.5rem;
}

.btn-submit:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

.btn-submit:disabled::before {
    content: none;
}

/* Spinner for loading states */
.spinner-border-sm {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: -0.125em;
    border: 0.15em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #5a6268;
}

.btn-danger {
    background: var(--error-color);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #c82333;
}

.btn-ghost {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
}

.ml-auto {
    margin-left: auto;
}

/* Radio and Checkbox */
.custom-control {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.custom-control-input {
    margin-right: var(--spacing-sm);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.custom-control-label {
    cursor: pointer;
    user-select: none;
}

.radio-group {
    display: flex;
    gap: var(--spacing);
    flex-wrap: wrap;
}

.radio-group .custom-control {
    flex: 1;
}

/* Table */
.table-responsive-wrapper {
    overflow-x: auto;
    margin-bottom: var(--spacing);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing);
}

table th {
    background: var(--bg-light);
    padding: var(--spacing-sm);
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

table td {
    padding: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
}

table input {
    margin: 0;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing);
}

/* Resume Upload Container - Split Layout */
.resume-upload-container {
    display: flex;
    gap: var(--spacing-lg);
    min-height: 400px;
}

.resume-dropzone-panel {
    flex: 0 0 60%;
    display: flex;
    flex-direction: column;
}

.resume-progress-panel {
    flex: 0 0 calc(40% - var(--spacing-lg));
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    border: 1px solid var(--border-color);
}

.progress-panel-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing);
    border-bottom: 1px solid var(--border-color);
}

/* Progress Timeline */
.progress-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.timeline-item {
    display: flex;
    gap: var(--spacing);
    padding: var(--spacing) 0;
    position: relative;
}

/* Connector line between items */
.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 15px;
    top: calc(var(--spacing) + 30px);
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    z-index: 0;
}

.timeline-item.completed:not(:last-child)::after {
    background: var(--success-color);
}

.timeline-item.active:not(:last-child)::after {
    background: linear-gradient(to bottom, var(--primary-color) 50%, var(--border-color) 50%);
}

.timeline-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-icon.pending {
    background: #e2e8f0;
    color: #94a3b8;
    border: 2px solid #cbd5e1;
}

.timeline-icon.waiting {
    background: #fef3c7;
    color: #d97706;
    border: 2px solid #fcd34d;
    animation: pulse-waiting 2s ease-in-out infinite;
}

.timeline-icon.active {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 0 4px rgba(70, 135, 175, 0.2);
    animation: pulse-active 1.5s ease-in-out infinite;
}

.timeline-icon.completed {
    background: var(--success-color);
    color: white;
    border: 2px solid var(--success-color);
}

.timeline-icon.completed .icon-number {
    display: none;
}

.timeline-icon.completed::after {
    content: '✓';
    font-size: 1rem;
}

.timeline-icon.error {
    background: var(--error-color);
    color: white;
    border: 2px solid var(--error-color);
}

.timeline-icon.error .icon-number {
    display: none;
}

.timeline-icon.error::after {
    content: '✕';
    font-size: 1rem;
}

@keyframes pulse-waiting {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes pulse-active {
    0%, 100% { box-shadow: 0 0 0 4px rgba(70, 135, 175, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(70, 135, 175, 0.1); }
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 4px;
    flex: 1;
}

.timeline-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.timeline-item.pending .timeline-label {
    color: #94a3b8;
}

.timeline-item.active .timeline-label {
    color: var(--primary-color);
    font-weight: 600;
}

.timeline-item.completed .timeline-label {
    color: var(--success-color);
}

.timeline-status {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-height: 1rem;
}

.timeline-item.active .timeline-status {
    color: var(--primary-color);
}

.timeline-item.completed .timeline-status {
    color: var(--success-color);
}

/* Timeline Progress Bar */
.timeline-progress-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.timeline-progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
}

/* Responsive: Stack on smaller screens */
@media (max-width: 768px) {
    .resume-upload-container {
        flex-direction: column;
    }
    
    .resume-dropzone-panel,
    .resume-progress-panel {
        flex: 1 1 auto;
    }
}

/* Dropzone */
.dropzone {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    text-align: center;
    background: var(--bg-light);
    transition: border-color 0.2s, background-color 0.2s;
    cursor: pointer !important;
    min-height: 300px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.dropzone * {
    cursor: pointer;
}

.dropzone:hover {
    border-color: var(--primary-color);
    background: rgba(70, 135, 175, 0.02);
}

.dropzone.dragover,
.dropzone.dz-drag-hover {
    border-color: var(--primary-color);
    background: rgba(70, 135, 175, 0.05);
}

.dropzone-message,
.dz-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing);
    pointer-events: auto;
    cursor: pointer;
}

.dropzone-message *,
.dz-message * {
    pointer-events: none;
}

.dropzone-message .btn,
.dz-message .btn {
    pointer-events: auto !important;
    cursor: pointer;
}

.dropzone-icon {
    width: 64px;
    height: 64px;
    opacity: 0.5;
    margin-bottom: var(--spacing-sm);
}

/* Dropzone Message - Make entire area clickable */
.dropzone .dz-message {
    pointer-events: auto !important;
    cursor: pointer;
}

.dropzone .dz-message * {
    pointer-events: none;
}

/* Dropzone Button */
.dropzone .dz-message .btn {
    pointer-events: auto !important;
    display: inline-block;
    padding: 0.625rem 1.25rem;
    margin-top: var(--spacing);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    text-decoration: none;
}

.dropzone .dz-message .btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.dropzone .dz-message .btn:active {
    transform: translateY(0);
}

/* Dropzone file preview */
.dropzone .dz-preview {
    position: relative;
    display: inline-block;
    margin: 0.5rem;
    vertical-align: top;
}

.dropzone .dz-preview .dz-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    width: 120px;
    height: 120px;
    position: relative;
    display: block;
    z-index: 10;
}

.dropzone .dz-preview .dz-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropzone .dz-preview .dz-details {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    font-size: 0.75rem;
    min-width: 100%;
    padding: 0.5rem;
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    border-radius: var(--border-radius);
    transition: opacity 0.2s;
    z-index: 20;
}

.dropzone .dz-preview:hover .dz-details {
    opacity: 1;
}

.dropzone .dz-preview .dz-filename {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 0.25rem;
}

.dropzone .dz-preview .dz-size {
    font-size: 0.7rem;
    opacity: 0.8;
}

.dropzone .dz-preview .dz-progress {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    z-index: 30;
    transform: translateY(-50%);
}

.dropzone .dz-preview .dz-progress .dz-upload {
    background: var(--primary-color);
    height: 100%;
    width: 0%;
    transition: width 0.3s;
}

.dropzone .dz-preview .dz-error-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--error-color);
    color: white;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    z-index: 40;
    white-space: nowrap;
}

.dropzone .dz-preview .dz-error-mark,
.dropzone .dz-preview .dz-success-mark {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 50;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: bold;
}

.dropzone .dz-preview .dz-error-mark {
    background: var(--error-color);
    color: white;
}

.dropzone .dz-preview .dz-success-mark {
    background: var(--success-color);
    color: white;
}

.dropzone .dz-preview .dz-remove {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 50;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: background-color 0.2s;
}

.dropzone .dz-preview .dz-remove:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Dropzone fallback message - keep visible so users can click/drag */
.dropzone .dz-message {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dropzone .dz-message h5 {
    margin: 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
}

.dropzone .dz-message p {
    margin: 0.5rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Ensure button inside dropzone message is styled */
.dropzone .dz-message .btn,
.dropzone .dz-message .dz-button,
.dropzone .dz-message span.btn {
    pointer-events: auto;
    margin-top: var(--spacing);
}

/* Section Headings */
.section-heading {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.section-spacing {
    margin-top: 2rem;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 3rem var(--spacing-lg);
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 2rem auto;
}

.success-message h2 {
    color: var(--success-color);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.success-message p {
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.success-message .success-detail {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 450px;
    margin: 1rem auto;
}

.success-message .success-note {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 1.5rem;
}

/* Animated checkmark */
.success-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.success-checkmark {
    width: 80px;
    height: 80px;
}

.success-checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--success-color);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3;
    stroke: var(--success-color);
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

/* File Card */
.file-card {
    display: inline-block;
    max-width: 300px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    background: white;
}

.file-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.file-card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

.file-card-title {
    margin: 0;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.success-icon {
    max-width: 200px;
    margin-bottom: var(--spacing-lg);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.social-links a {
    font-size: 2rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: transform 0.2s;
}

.social-links a:hover {
    transform: scale(1.1);
}

/* Error Messages */
.text-danger {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: var(--spacing-sm);
}

.invisible {
    display: none;
}

.visible {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: var(--spacing-sm);
    }
    
    .container {
        padding: var(--spacing-sm);
    }
    
    .header {
        flex-direction: column;
        gap: var(--spacing);
    }
    
    .step-progress {
        flex-direction: column;
    }
    
    .step-item:not(:last-child)::after {
        display: none;
    }
    
    .card-footer {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .ml-auto {
        margin-left: 0;
        width: 100%;
    }
    
    .radio-group {
        flex-direction: column;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid,
    .form-grid-two {
        grid-template-columns: 1fr;
    }
    
    table {
        min-width: 600px;
    }
}

@media (max-width: 576px) {
    .step-title {
        font-size: 0.75rem;
    }
    
    .step-icon {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
    
    .form-control,
    .custom-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Progress Bar */
.progress {
    height: 8px;
    border-radius: 4px;
    background: var(--bg-light);
    overflow: hidden;
    width: 100%;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
    border-radius: 4px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    border: 3px solid var(--bg-light);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* Toast notifications */
#toast-container {
    position: fixed;
    z-index: 999999;
    pointer-events: none;
}

#toast-container > div {
    pointer-events: auto;
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: var(--border-radius);
    margin: 0 0 0.75rem 0;
    padding: 1rem 1.5rem;
    min-width: 300px;
    max-width: 500px;
    width: auto;
}

#toast-container > div:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

#toast-container.toast-top-center > div,
#toast-container.toast-bottom-center > div {
    margin-left: auto;
    margin-right: auto;
}

#toast-container.toast-top-full-width > div,
#toast-container.toast-bottom-full-width > div {
    width: 96%;
    margin-left: auto;
    margin-right: auto;
    max-width: none;
}

.toast {
    background-color: #030303;
    color: #ffffff;
    opacity: 0.9;
}

.toast-success {
    background-color: var(--success-color);
    color: #ffffff;
}

.toast-error {
    background-color: var(--error-color);
    color: #ffffff;
}

.toast-info {
    background-color: #17a2b8;
    color: #ffffff;
}

.toast-warning {
    background-color: #ffc107;
    color: #212529;
}

.toast-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.875rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.toast-close-button {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    font-size: 1.25rem;
    font-weight: bold;
    color: inherit;
    opacity: 0.8;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 1;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close-button:hover {
    opacity: 1;
}

/* Toast positioning */
#toast-container.toast-top-center {
    top: 1rem;
    right: 0;
    left: 0;
}

#toast-container.toast-bottom-center {
    bottom: 1rem;
    right: 0;
    left: 0;
}

#toast-container.toast-top-full-width {
    top: 0;
    right: 0;
    left: 0;
}

#toast-container.toast-bottom-full-width {
    bottom: 0;
    right: 0;
    left: 0;
}

#toast-container.toast-top-right {
    top: 1rem;
    right: 1rem;
}

#toast-container.toast-bottom-right {
    bottom: 1rem;
    right: 1rem;
}

#toast-container.toast-top-left {
    top: 1rem;
    left: 1rem;
}

#toast-container.toast-bottom-left {
    bottom: 1rem;
    left: 1rem;
}

/* Animation */
.toast {
    animation: toast-in 0.3s ease-out;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    #toast-container > div {
        min-width: auto;
        width: calc(100% - 2rem);
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    #toast-container.toast-top-full-width > div,
    #toast-container.toast-bottom-full-width > div {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
    }
}

/* Additional Bootstrap-like utilities */
.is-invalid {
    border-color: var(--error-color) !important;
}

.is-invalid:focus {
    border-color: var(--error-color) !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--error-color);
}

/* Ensure select2 matches form styling */
.select2-container--default .select2-selection--single.is-invalid {
    border-color: var(--error-color) !important;
}

.select2-container--default.select2-container--focus .select2-selection--single.is-invalid {
    border-color: var(--error-color) !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}
