/* Job Application Form Styles - Digital Services Corp */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Albert Sans', sans-serif;
    line-height: 2em;
    color: #231F20;
    font-size: 18px;
    font-weight: 400;
    background-color: #f8f9fa;
}

.form-container {
    max-width: 900px;
    margin: 20px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .form-container {
        max-width: 100%;
        margin: 10px;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .form-header {
        padding: 20px;
    }
    
    .form-header h1 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .form-container {
        margin: 5px;
        border-radius: 6px;
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    }
    
    body {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .form-header {
        padding: 15px;
    }
    
    .form-header h1 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
}

.form-header {
    background: linear-gradient(135deg, #0098FF 0%, #007acc 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.form-header h1 {
    font-family: "Delight Semibold", Sans-serif;
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 600;
    color: #FFFFFF;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 10px;
    padding: 0 20px;
}

/* Mobile Progress Bar */
@media (max-width: 768px) {
    .progress-bar {
        padding: 0 10px;
        margin-bottom: 8px;
        flex-wrap: wrap;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .progress-bar {
        padding: 0 5px;
        margin-bottom: 5px;
        flex-direction: column;
        gap: 3px;
    }
}

.progress-step {
    display: none;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    min-width: 120px;
    padding: 8px 15px;
    margin: 0 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

/* Mobile Progress Steps */
@media (max-width: 768px) {
    .progress-step {
        min-width: 80px;
        padding: 6px 10px;
        margin: 0 5px;
        font-size: 12px;
    }
    
    .progress-step .step-number {
        font-size: 14px;
        width: 24px;
        height: 24px;
    }
    
    .progress-step .step-title {
        font-size: 10px;
        display: none;
    }
}

@media (max-width: 480px) {
    .progress-step {
        min-width: 60px;
        padding: 4px 8px;
        margin: 0 3px;
        font-size: 11px;
    }
    
    .progress-step .step-number {
        font-size: 12px;
        width: 20px;
        height: 20px;
    }
    
    .progress-step .step-title {
        font-size: 9px;
        display: none;
    }
}

.progress-step.visible {
    display: flex;
}

.progress-step.current {
    order: 2;
    z-index: 3;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 152, 255, 0.3);
}

.progress-step.previous {
    order: 1;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.15);
}

.progress-step.next {
    order: 3;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.1);
}

.step-label {
    font-size: 0.65rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.step-title {
    font-size: 0.8rem;
    text-align: center;
    max-width: 120px;
    line-height: 16px;
    word-wrap: break-word;
    hyphens: auto;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.progress-step.current .step-label,
.progress-step.current .step-title {
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    transform: scale(1.05);
}

.progress-step.previous .step-label,
.progress-step.previous .step-title {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.progress-step.next .step-label,
.progress-step.next .step-title {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Mobile Step Labels and Titles */
@media (max-width: 768px) {
    .step-label {
        font-size: 0.55rem;
        margin-bottom: 2px;
    }
    
    .step-title {
        font-size: 0.7rem;
        line-height: 14px;
        max-width: 80px;
    }
    
    .progress-step .step-label,
    .progress-step .step-title {
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }
}

@media (max-width: 480px) {
    .step-label {
        font-size: 0.5rem;
        margin-bottom: 1px;
    }
    
    .step-title {
        font-size: 0.6rem;
        line-height: 12px;
        max-width: 60px;
    }
    
    .progress-step .step-label,
    .progress-step .step-title {
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }
}

/* Form Styles */
.multi-step-form {
    padding: 40px;
}

/* Mobile Form Styles */
@media (max-width: 768px) {
    .multi-step-form {
        padding: 20px;
    }
    
    .form-step {
        padding: 20px;
        margin: 15px 0;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .multi-step-form {
        padding: 15px;
    }
    
    .form-step {
        padding: 15px;
        margin: 10px 0;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group label {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 13px;
        padding: 8px;
    }
    
    .form-group input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }
    
    .form-group input[type="radio"] {
        width: 16px;
        height: 16px;
    }
}

.form-step {
    display: none;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.3s ease;
}

.form-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.form-step h2 {
    font-family: "Delight Semibold", Sans-serif;
    color: #231F20;
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid #0098FF;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 400;
    color: #231F20;
    font-family: 'Albert Sans', sans-serif;
    font-size: 18px;
    line-height: 2em;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px !important;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 18px;
    font-family: 'Albert Sans', sans-serif;
    font-weight: 400;
    line-height: 2em;
    color: #231F20;
    transition: border-color 0.3s ease;
    height: auto;
    line-height: normal !important;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #0098FF;
    box-shadow: 0 0 0 3px rgba(0, 152, 255, 0.1);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* Radio and Checkbox Groups */
.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.radio-group label:hover,
.checkbox-group label:hover {
    background-color: #f8f9fa;
}

input[type="radio"],
input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

/* Conditional Fields */
.conditional-field {
    margin-top: 10px;
    margin-left: 20px;
    padding: 10px;
    background-color: #f8f9fa;
    border-left: 3px solid #0098FF;
    border-radius: 0 6px 6px 0;
}

/* Availability Grid */
.availability-grid {
    overflow-x: auto;
}

.availability-grid table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.availability-grid th,
.availability-grid td {
    padding: 12px;
    text-align: center;
    border: 1px solid #e1e5e9;
}

.availability-grid th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #555;
}

.availability-grid td:first-child {
    text-align: left;
    font-weight: 500;
    background-color: #f8f9fa;
}

.availability-grid input[type="checkbox"] {
    transform: scale(1.2);
}

/* Employment and References Entries */
.employment-entry,
.reference-entry {
    padding: 20px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: #fafbfc;
}

.reference-entry h4 {
    color: #0098FF;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-family: "Delight Semibold", Sans-serif;
    font-weight: 600;
}

/* Buttons */
.btn-nav,
.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-nav {
    background-color: #0098FF;
    color: #FFF;
    font-size: 18px;
    font-family: 'Albert Sans';
    font-weight: 600;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-nav:hover:not(:disabled) {
    background-color: #007acc;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 152, 255, 0.3);
}

.btn-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background-color: #0098FF;
    color: #FFF;
    font-size: 18px;
    font-family: 'Albert Sans';
    font-weight: 600;
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: #007acc;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 152, 255, 0.3);
}

.btn-primary:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top: 2px solid transparent;
    animation: spin 1s linear infinite;
}

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

.btn-secondary {
    background-color: #0098FF;
    color: #FFF;
    font-size: 18px;
    font-family: 'Albert Sans';
    font-weight: 600;
    margin-bottom: 20px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-secondary:hover {
    background-color: #007acc;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 152, 255, 0.3);
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .form-navigation {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        margin-top: 20px;
    }
    
    .btn-nav {
        width: 100%;
        font-size: 14px;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .form-navigation {
        padding: 10px;
        margin-top: 15px;
        gap: 10px;
    }
    
    .btn-nav {
        width: 100%;
        font-size: 13px;
        padding: 10px 15px;
    }
    
    .btn-nav:disabled {
        font-size: 12px;
        padding: 8px 12px;
    }
}

.form-actions {
    margin-top: 30px;
}

/* Error and Validation Styles */
.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-container {
        margin: 10px;
        border-radius: 8px;
    }
    
    .form-header {
        padding: 20px;
    }
    
    .form-header h1 {
        font-size: 1.5rem;
    }
    
    .multi-step-form {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .progress-bar {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .progress-step {
        flex: 0 0 calc(25% - 6px);
        margin-bottom: 10px;
        min-width: 50px;
        padding: 0 1px;
    }
    
    .step-title {
        font-size: 0.6rem;
        max-width: 70px;
        line-height: 10px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .availability-grid {
        font-size: 0.9rem;
    }
    
    .availability-grid th,
    .availability-grid td {
        padding: 6px 2px;
    }
}

@media (max-width: 480px) {
    .form-header h1 {
        font-size: 1.3rem;
    }
    
    .progress-step {
        flex: 0 0 calc(33.333% - 7px);
    }
    
    .step-title {
        display: none;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-nav {
        width: 100%;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

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

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Print Styles */
@media print {
    .form-navigation,
    .btn-secondary {
        display: none;
    }
    
    .form-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .form-header {
        background: none !important;
        color: #333 !important;
    }
}
