/**
 * Careers & Jobs Styling
 * Espinoza Installation Solutions
 */

/* Careers Hero Section */
.careers-hero-section {
    background: #ffffff;
    color: #111827;
    padding: 4rem 0;
    text-align: center;
}

.careers-hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #111827;
}

.careers-hero-content .highlight {
    color: #CC0000;
}

.careers-hero-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.8;
}

/* Benefits Section */
.benefits-section {
    padding: 4rem 0;
    background: #f7f7f9;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.section-header .highlight {
    color: #CC0000;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #DDDDDD;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.benefit-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #CC0000, #D40000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
}

.benefit-card p {
    color: #374151;
    line-height: 1.6;
}

/* Open Positions Section */
.positions-section {
    padding: 4rem 0;
    background: white;
}

.positions-list {
    margin-top: 2rem;
}

/* Loading State */
.jobs-loading {
    text-align: center;
    padding: 3rem 1rem;
    color: #374151;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #DDDDDD;
    border-top: 4px solid #CC0000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Job Position Cards */
.position-card {
    background: white;
    border: 1px solid #DDDDDD;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

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

.position-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.position-card-urgent {
    border-left: 4px solid #ef4444;
    background: linear-gradient(to right, #fef2f2, white);
}

.position-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.position-title h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

.position-type {
    background: #f7f7f9;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.position-type.urgent {
    background: #fee2e2;
    color: #dc2626;
    font-weight: 600;
}

.position-location {
    color: #374151;
    font-size: 0.875rem;
    white-space: nowrap;
}

.position-location i {
    margin-right: 0.5rem;
    color: #CC0000;
}

.position-description {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.position-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.position-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.position-tags span {
    background: #fef2f2;
    color: #CC0000;
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
}

.position-actions {
    display: flex;
    gap: 0.75rem;
}

/* Application CTA Section */
.application-cta-section {
    background: #ffffff;
    color: #111827;
    padding: 4rem 0;
    text-align: center;
}

/* Container within Application CTA Section */
.application-cta-section .container {
    margin-bottom: 100px;
}

.application-cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111827;
}

.application-cta-content p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 1;
    color: #374151;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-primary {
    background: #CC0000;
    color: white;
}

.btn-primary:hover {
    background: #D40000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.3);
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: #CC0000;
    border: 2px solid #CC0000;
}

.btn-ghost:hover {
    background: #CC0000;
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Job Detail Page Styles */
.job-detail-section {
    padding: 3rem 0;
    background: #f7f7f9;
}

.job-detail-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.job-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #f7f7f9;
    border-radius: 8px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item i {
    color: #CC0000;
    width: 1rem;
}

.job-description {
    line-height: 1.7;
    color: #374151;
}

.job-description h3 {
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.job-description ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.job-description li {
    margin-bottom: 0.5rem;
}

/* Application Form Styles */
.application-form-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.form-section {
    margin-bottom: 2rem;
}

.form-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section-title i {
    color: #CC0000;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #DDDDDD;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
    line-height: 1.4;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6b7280;
    opacity: 1;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #CC0000;
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
}

.form-group input[type="file"]:focus {
    border-color: #CC0000;
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
}

.form-help {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
    font-style: italic;
}

.recaptcha-notice {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
    margin-top: 1rem;
    line-height: 1.4;
}

.recaptcha-notice a {
    color: #CC0000;
    text-decoration: none;
}

.recaptcha-notice a:hover {
    text-decoration: underline;
}

/* File upload styles */
.form-group input[type="file"] {
    padding: 0.5rem;
    border: 2px dashed #DDDDDD;
    background: #f7f7f9;
    cursor: pointer;
}

.form-group input[type="file"]:hover {
    border-color: #CC0000;
    background: #fef2f2;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.checkbox-group,
.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
    margin: 0;
}

.checkbox-label input,
.radio-label input {
    width: auto;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .careers-hero-content h1 {
        font-size: 2rem;
    }
    
    .careers-hero-content p {
        font-size: 1rem;
    }
    
    .position-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .position-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .position-actions {
        justify-content: stretch;
    }
    
    .position-actions .btn {
        flex: 1;
        justify-content: center;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .checkbox-group,
    .radio-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .careers-hero-section {
        padding: 2rem 0;
    }
    
    .benefit-card,
    .position-card {
        padding: 1rem;
    }
    
    .application-cta-content h2 {
        font-size: 2rem;
    }
}

/* Success/Error States */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #fef2f2;
    color: #CC0000;
    border: 1px solid #fecaca;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #374151;
}

.empty-state i {
    font-size: 3rem;
    color: #DDDDDD;
    margin-bottom: 1rem;
}