/*
Theme Name: درخواست همکاری حرفه‌ای
Theme URI: https://example.com
Author: Your Company
Author URI: https://example.com
Description: قالب رسمی و حرفه‌ای وردپرس برای مدیریت درخواست‌های همکاری و رزومه‌های متقاضیان
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: careers
Tags: rtl-language-support, custom-colors, custom-menu, featured-images, professional, business, corporate
*/

/* Import Persian Fonts */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.8;
    color: #1a1a1a;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    min-height: 100vh;
    direction: rtl;
    text-align: right;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(41, 128, 185, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(52, 152, 219, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Premium Enhancements */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: #1a5490;
    color: white;
}

/* Careers Form Wrapper */
.careers-form-wrapper {
    max-width: 1000px;
    margin: 60px auto;
    padding: 60px;
    background: #ffffff;
    border-radius: 2px;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        0 8px 24px rgba(0, 0, 0, 0.15),
        0 16px 48px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border-top: 4px solid #1a5490;
}

/* Background Image Container */
.careers-form-background-container {
    width: 500px;
    height: 200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.careers-form-background {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 2px;
}

.careers-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1a5490 0%, #2980b9 50%, #3498db 100%);
}

.careers-form-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 20px;
}

.careers-form-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1a5490 0%, #2980b9 100%);
}

.careers-form-subtitle {
    font-size: 1.1rem;
    color: #5a5a5a;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 400;
    line-height: 1.6;
}

.careers-form {
    display: grid;
    gap: 28px;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
    animation: fadeIn 0.5s ease-in;
}

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

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group label .required {
    color: #c0392b;
    margin-right: 4px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #d0d0d0;
    border-radius: 2px;
    font-size: 1rem;
    font-family: 'Vazirmatn', inherit;
    transition: all 0.3s ease;
    background-color: #ffffff;
    color: #2c3e50;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #1a5490;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(26, 84, 144, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-group input[type="file"] {
    padding: 16px;
    border: 2px dashed #bdc3c7;
    border-radius: 2px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', inherit;
}

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

.file-info {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #7f8c8d;
    font-weight: 500;
}

.file-info.error {
    color: #c0392b;
    font-weight: 600;
    background: #fcebec;
    padding: 8px 12px;
    border-radius: 2px;
    border-right: 3px solid #c0392b;
}

.file-info.success {
    color: #196f3d;
    font-weight: 600;
    background: #eafaf1;
    padding: 8px 12px;
    border-radius: 2px;
    border-right: 3px solid #27ae60;
}

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

.submit-button {
    background: linear-gradient(135deg, #1a5490 0%, #2980b9 100%);
    color: white;
    padding: 16px 48px;
    border: none;
    border-radius: 2px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', inherit;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(26, 84, 144, 0.3);
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submit-button:hover {
    box-shadow: 0 6px 20px rgba(26, 84, 144, 0.4);
    transform: translateY(-2px);
}

.submit-button:hover::before {
    opacity: 1;
}

.submit-button span {
    position: relative;
    z-index: 1;
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-message {
    padding: 16px 20px;
    border-radius: 2px;
    margin-bottom: 30px;
    font-weight: 500;
    display: none;
    font-size: 0.95rem;
    border-left: 4px solid;
}

.form-message.success {
    background: #ecf9f2;
    color: #0f5132;
    border-color: #27ae60;
    display: block;
}

.form-message.error {
    background: #fcebec;
    color: #721c24;
    border-color: #c0392b;
    display: block;
}

.form-loading {
    display: none;
    text-align: center;
    padding: 40px;
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 500;
}

.form-loading.active {
    display: block;
}

.spinner {
    border: 3px solid #ecf0f1;
    border-top: 3px solid #1a5490;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

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

/* Job Opportunities Page */
.job-opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin: 40px 0 60px;
}

.no-jobs-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: #f8f9fa;
    border-radius: 2px;
    border: 2px dashed #d0d0d0;
}

.no-jobs-message p {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin: 0;
}

.job-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(26, 84, 144, 0.15);
    border-color: #1a5490;
}

.job-card-header {
    background: linear-gradient(135deg, #1a5490 0%, #2c5364 100%);
    padding: 30px;
    text-align: center;
    position: relative;
}

.job-title {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.job-card-body {
    padding: 30px;
}

.job-description {
    color: #5a5a5a;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: justify;
}

.job-details {
    border-top: 1px solid #e8e8e8;
    padding-top: 20px;
}

.job-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.job-detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.detail-value {
    color: #5a5a5a;
    font-size: 0.95rem;
}

.job-card-footer {
    padding: 25px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e8e8e8;
}

.job-apply-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #1a5490 0%, #2980b9 100%);
    color: white;
    text-align: center;
    padding: 14px 24px;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(26, 84, 144, 0.3);
}

.job-apply-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 84, 144, 0.4);
}

/* Application Form Section */
.application-form-section {
    margin-top: 60px;
    animation: fadeIn 0.5s ease-in;
}

.form-divider {
    height: 3px;
    background: linear-gradient(90deg, #1a5490 0%, #2980b9 50%, #3498db 100%);
    margin-bottom: 40px;
    border-radius: 2px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    text-align: center;
}

.section-subtitle {
    font-size: 1rem;
    color: #5a5a5a;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.6;
}

.section-subtitle strong {
    color: #1a5490;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .careers-form-wrapper {
        margin: 30px 20px;
        padding: 40px 30px;
    }

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

    .careers-form-subtitle {
        font-size: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .careers-form-background-container {
        width: 200px;
        height: 200px;
    }
    
    .job-opportunities-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .job-card-header {
        padding: 25px;
    }
    
    .job-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }

    .careers-form-wrapper {
        margin: 20px 15px;
        padding: 30px 20px;
        border-radius: 0;
    }

    .careers-form-title {
        font-size: 1.75rem;
    }

    .careers-form-subtitle {
        font-size: 0.95rem;
    }

    .submit-button {
        padding: 14px 36px;
        font-size: 0.95rem;
    }
    
    .careers-form-background-container {
        width: 200px;
        height: 200px;
    }
    
    .form-group label {
        font-size: 0.85rem;
    }
    
    .job-opportunities-grid {
        gap: 20px;
    }
    
    .job-card-header {
        padding: 20px;
    }
    
    .job-card-body {
        padding: 20px;
    }
    
    .job-card-footer {
        padding: 20px;
    }
    
    .job-title {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .detail-label,
    .detail-value {
        font-size: 0.85rem;
    }

}
