/* Thinkster HR Frontend Styles */

:root {
    --sb-primary: #FF6B35;
    --sb-dark: #003d82;
    --sb-light: #f5f5f5;
    --sb-text: #333333;
    --sb-border: #e0e0e0;
}

* {
    box-sizing: border-box;
}

.thrj-job-application-wrapper {
    display: flex;
    gap: 2rem;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Sidebar */
.thrj-form-sidebar {
    position: sticky;
    top: 20px;
    width: 300px;
    background: linear-gradient(135deg, var(--sb-dark) 0%, #005cb5 100%);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    height: fit-content;
    box-shadow: 0 4px 20px rgba(0, 61, 130, 0.15);
}

.thrj-sidebar-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.thrj-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 0.5rem;
}

.thrj-powered {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    margin: 0;
}

.thrj-progress-tracker {
    margin-bottom: 2rem;
}

.thrj-progress-tracker h3 {
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.thrj-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.thrj-progress-fill {
    height: 100%;
    background: var(--sb-primary);
    transition: width 0.3s ease;
}

.thrj-progress-text {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0;
}

.thrj-step-indicators {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.thrj-step-indicator {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.thrj-step-indicator.active {
    opacity: 1;
}

.thrj-step-circle {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.thrj-step-indicator.active .thrj-step-circle {
    background: var(--sb-primary);
}

.thrj-step-label {
    flex: 1;
}

.thrj-step-title {
    font-size: 0.85rem;
    margin: 0;
}

.thrj-sidebar-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.thrj-info-box {
    margin-bottom: 1rem;
}

.thrj-info-box:last-child {
    margin-bottom: 0;
}

.thrj-info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    margin-bottom: 0.25rem;
}

.thrj-info-value {
    font-size: 0.95rem;
    font-weight: 600;
}

.thrj-sidebar-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.thrj-company-name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.thrj-company-tagline {
    font-size: 0.75rem;
    opacity: 0.7;
    margin: 0;
}

/* Main form area */
.thrj-form-main {
    flex: 1;
    min-width: 0;
}

.thrj-form-container {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.thrj-form-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--sb-border);
}

.thrj-form-header h1 {
    color: var(--sb-dark);
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
}

.thrj-form-tagline {
    color: var(--sb-primary);
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
}

.thrj-current-step-title {
    margin-top: 1rem;
    color: var(--sb-text);
    font-size: 1.1rem;
}

.thrj-step-icon {
    margin-right: 0.5rem;
}

/* Form steps */
.thrj-form-step {
    animation: fadeIn 0.3s ease;
}

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

.thrj-step-heading {
    color: var(--sb-dark);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.thrj-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.thrj-form-field {
    display: flex;
    flex-direction: column;
}

.thrj-form-field label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--sb-text);
    font-size: 0.95rem;
}

.required {
    color: var(--sb-primary);
}

.thrj-input,
.thrj-select,
.thrj-textarea,
.thrj-file-input {
    padding: 0.75rem;
    border: 2px solid var(--sb-border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: white;
}

.thrj-input:focus,
.thrj-select:focus,
.thrj-textarea:focus,
.thrj-file-input:focus {
    outline: none;
    border-color: var(--sb-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.thrj-textarea {
    resize: vertical;
    min-height: 120px;
}

.thrj-file-input {
    padding: 1rem;
    background: var(--sb-light);
    cursor: pointer;
}

.thrj-file-input small {
    display: block;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.85rem;
}

.thrj-interview-slots {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.thrj-interview-slots p {
    margin: 0 0 1rem 0;
    color: var(--sb-text);
}

.thrj-slot {
    display: flex;
    gap: 1rem;
}

.thrj-slot-date,
.thrj-slot-time {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--sb-border);
    border-radius: 6px;
    font-size: 1rem;
    background-color: white;
}

.thrj-slot-date:focus,
.thrj-slot-time:focus {
    outline: none;
    border-color: var(--sb-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Buttons */
.thrj-form-navigation {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--sb-border);
}

.thrj-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.thrj-btn-primary {
    background: var(--sb-primary);
    color: white;
}

.thrj-btn-primary:hover {
    background: #E55A20;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.thrj-btn-secondary {
    background: transparent;
    color: var(--sb-primary);
    border: 2px solid var(--sb-primary);
}

.thrj-btn-secondary:hover {
    background: rgba(255, 107, 53, 0.05);
}

.thrj-btn-success {
    background: #4CAF50;
    color: white;
}

.thrj-btn-success:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.thrj-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Form footer */
.thrj-form-footer {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--sb-light);
    border-radius: 6px;
}

.thrj-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--sb-text);
}

.thrj-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--sb-primary);
}

/* Responsive design */
@media (max-width: 1024px) {
    .thrj-job-application-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }

    .thrj-form-sidebar {
        position: static;
        width: 100%;
    }

    .thrj-form-container {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .thrj-fields-grid {
        grid-template-columns: 1fr;
    }

    .thrj-form-header h1 {
        font-size: 1.5rem;
    }

    .thrj-form-navigation {
        flex-direction: column-reverse;
    }

    .thrj-btn {
        width: 100%;
    }

    .thrj-slot {
        flex-direction: column;
    }

    .thrj-step-indicators {
        display: none;
    }

    .thrj-form-container {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .thrj-job-application-wrapper {
        margin: 1rem auto;
    }

    .thrj-form-container {
        padding: 1rem;
        border-radius: 8px;
    }

    .thrj-form-header {
        margin-bottom: 1.5rem;
    }

    .thrj-form-header h1 {
        font-size: 1.25rem;
    }

    .thrj-sidebar-info {
        display: none;
    }

    .thrj-fields-grid {
        gap: 1.5rem;
    }
}
