/**
 * Careers Page Styles
 * Professional job application and careers page styling
 *
 * @package Cosmick_Media_Project_Theme
 */

/* ========================================
   Careers Page Base
========================================== */

.cosmick-careers-page {
    background: #f8f9fa;
    min-height: 100vh;
}

/* ========================================
   Hero Section
========================================== */

.cosmick-careers-hero {
    background: linear-gradient(135deg, #2d1839 0%, #ff675b 100%);
    color: white;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cosmick-careers-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="careerDots" patternUnits="userSpaceOnUse" width="20" height="20"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23careerDots)"/></svg>');
    opacity: 0.4;
}

.cosmick-careers-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cosmick-careers-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    color: white;
}

.cosmick-careers-hero p {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cosmick-careers-hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.cosmick-careers-stat {
    text-align: center;
}

.cosmick-careers-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.cosmick-careers-stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   Why Join Us Section
========================================== */

.cosmick-careers-why-section {
    padding: 80px 0;
    background: white;
}

.cosmick-careers-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.cosmick-careers-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d1839;
    margin-bottom: 15px;
    position: relative;
}

.cosmick-careers-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #ff675b;
    border-radius: 2px;
}

.cosmick-careers-section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.cosmick-careers-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.cosmick-careers-benefit-card {
    background: white;
    padding: 35px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    text-align: center;
    transition: all 0.3s ease;
}

.cosmick-careers-benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    border-color: #ff675b;
}

.cosmick-careers-benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff675b 0%, #fdc785 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.cosmick-careers-benefit-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d1839;
    margin-bottom: 12px;
}

.cosmick-careers-benefit-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   Application Form Section
========================================== */

.cosmick-careers-form-section {
    padding: 80px 0;
    padding-bottom: 200px;
    background: #f8f9fa;
}

.cosmick-careers-form-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
}

.cosmick-careers-form-intro {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.cosmick-careers-form-intro h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d1839;
    margin-bottom: 15px;
}

.cosmick-careers-form-intro p {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Form Sections */
.cosmick-careers-form-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d1839;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff675b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cosmick-careers-form-section-title i {
    color: #ff675b;
}

/* Form Groups */
.cosmick-careers-form-group {
    margin-bottom: 25px;
}

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

.cosmick-careers-form-label {
    display: block;
    font-weight: 600;
    color: #2d1839;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.cosmick-careers-form-label.required::after {
    content: ' *';
    color: #ff675b;
}

.cosmick-careers-form-input,
.cosmick-careers-form-select,
.cosmick-careers-form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: white;
}

.cosmick-careers-form-input:focus,
.cosmick-careers-form-select:focus,
.cosmick-careers-form-textarea:focus {
    outline: none;
    border-color: #ff675b;
    box-shadow: 0 0 0 3px rgba(255, 103, 91, 0.1);
}

.cosmick-careers-form-textarea {
    resize: vertical;
    min-height: 120px;
}

.cosmick-careers-form-input::placeholder,
.cosmick-careers-form-textarea::placeholder {
    color: #999;
}

/* File Upload */
.cosmick-careers-file-upload {
    position: relative;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cosmick-careers-file-upload:hover {
    border-color: #ff675b;
    background: #fff5f3;
}

.cosmick-careers-file-upload.has-file {
    border-color: #4caf50;
    background: #f1f8f4;
}

.cosmick-careers-file-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.cosmick-careers-file-upload-icon {
    font-size: 3rem;
    color: #ff675b;
    margin-bottom: 15px;
}

.cosmick-careers-file-upload.has-file .cosmick-careers-file-upload-icon {
    color: #4caf50;
}

.cosmick-careers-file-upload-text {
    font-weight: 600;
    color: #2d1839;
    margin-bottom: 5px;
}

.cosmick-careers-file-upload-hint {
    font-size: 0.85rem;
    color: #999;
}

.cosmick-careers-file-name {
    display: none;
    margin-top: 10px;
    padding: 8px 12px;
    background: white;
    border-radius: 5px;
    color: #2d1839;
    font-weight: 600;
    font-size: 0.9rem;
}

.cosmick-careers-file-upload.has-file .cosmick-careers-file-name {
    display: block;
}

/* Checkbox Group */
.cosmick-careers-checkbox-group {
    margin-bottom: 25px;
}

.cosmick-careers-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cosmick-careers-checkbox-label:hover {
    background: #f8f9fa;
}

.cosmick-careers-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
}

.cosmick-careers-checkbox-label span {
    color: #666;
    line-height: 1.5;
}

.cosmick-careers-checkbox-label a {
    color: #ff675b;
    text-decoration: none;
}

.cosmick-careers-checkbox-label a:hover {
    text-decoration: underline;
}

/* Submit Button */
.cosmick-careers-submit-container {
    margin-top: 40px;
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.cosmick-careers-submit-btn {
    background: linear-gradient(135deg, #ff675b 0%, #fdc785 100%);
    color: white;
    padding: 16px 50px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 103, 91, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cosmick-careers-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 103, 91, 0.4);
}

.cosmick-careers-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Success Message */
.cosmick-careers-success-message {
    display: none;
    background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.3);
}

.cosmick-careers-success-message.show {
    display: block;
    animation: slideIn 0.5s ease;
}

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

.cosmick-careers-success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.cosmick-careers-success-message h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.cosmick-careers-success-message p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 10px;
    opacity: 0.95;
}

/* Error Message */
.cosmick-careers-error-message {
    display: none;
    background: #f44336;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.cosmick-careers-error-message.show {
    display: block;
}

/* Required Field Indicator */
.cosmick-careers-required-note {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 25px;
    font-style: italic;
}

.cosmick-careers-required-note span {
    color: #ff675b;
    font-weight: 600;
}

/* ========================================
   Responsive Design
========================================== */

@media (max-width: 768px) {
    .cosmick-careers-hero {
        padding: 70px 0 50px;
    }

    .cosmick-careers-hero h1 {
        font-size: 2.5rem;
    }

    .cosmick-careers-hero p {
        font-size: 1.1rem;
    }

    .cosmick-careers-hero-stats {
        gap: 30px;
    }

    .cosmick-careers-stat-number {
        font-size: 2rem;
    }

    .cosmick-careers-section-title {
        font-size: 2rem;
    }

    .cosmick-careers-benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cosmick-careers-form-container {
        padding: 30px 20px;
    }

    .cosmick-careers-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .cosmick-careers-form-intro h2 {
        font-size: 1.6rem;
    }

    .cosmick-careers-submit-btn {
        width: 100%;
        padding: 14px 30px;
    }
}

@media (max-width: 576px) {
    .cosmick-careers-hero h1 {
        font-size: 2rem;
    }

    .cosmick-careers-hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .cosmick-careers-benefit-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }

    .cosmick-careers-form-section-title {
        font-size: 1.2rem;
    }
}

/* ========================================
   Loading State
========================================== */

.cosmick-careers-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   Form Validation
========================================== */

.cosmick-careers-form-input.error,
.cosmick-careers-form-select.error,
.cosmick-careers-form-textarea.error {
    border-color: #f44336;
}

.cosmick-careers-form-error {
    color: #f44336;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.cosmick-careers-form-error.show {
    display: block;
}
