:root {
    --color-bg: #F9F7F2;
    --color-surface: #FFFFFF;
    --color-text: #1C1C1E;
    --color-text-light: #5A5A5E;
    --color-primary: #8B1E3F;
    --color-accent: #D4AF37;
    --color-secondary: #2A3B47;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}
/* Animation Base */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Hero */
.hero {
    position: relative;
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: #fff;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212,175,55,0.1) 0%, transparent 60%);
    animation: float 20s linear infinite;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -1px;
    color: #e4ddcd;
}
.hero p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}
/* Hero Buttons - Fixed for Mobile */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}
.btn-primary {
    background: var(--color-accent);
    color: var(--color-secondary);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
    background: #1e3c72;
    color: white;
}
.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
    background: #fff;
    color: var(--color-primary);
}

/* Benefits */
.benefits {
    padding: var(--spacing-lg) 0;
}
.section-title {
    text-align: center;
    margin-bottom: var(--spacing-md);
}
.section-title h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: var(--spacing-xs);
}
.section-title p {
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}
.benefit-card {
    background: var(--color-surface);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}
.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
    color: #fff;
    font-size: 1.5rem;
}
.benefit-card h3 { margin-bottom: var(--spacing-xs); font-size: 1.4rem; }
.benefit-card p { color: var(--color-text-light); line-height: 1.8; font-size: 0.95rem; text-align: justify;}

/* Positions */
.positions {
    padding: var(--spacing-lg) 0;
    background: #F1EEF6;
}
.job-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    max-width: 900px;
    margin: 0 auto;
}
.job-card {
    background: var(--color-surface);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}
.job-card:hover {
    transform: translateX(8px);
    border-left: 4px solid var(--color-accent);
}
.job-info h3 { font-size: 1.25rem; margin-bottom: 4px; }
.job-meta { color: var(--color-text-light); font-size: 0.9rem; line-height: 1.6; }
.tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(139,30,63,0.1);
    color: var(--color-primary);
    border-radius: 50px;
    font-size: 0.8rem;
    margin-right: 8px;
    margin-bottom: 8px;
}
.job-action {
    display: flex;
    align-items: center;
    gap: 10px;
}
.job-action .btn {
    white-space: nowrap;
}

/* Process - Fixed Timeline */
.process {
    padding: var(--spacing-lg) 0;
}
.steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}
.steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-accent);
    z-index: 1;
}
.step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
    padding: 0 10px;
}
.step-number {
    width: 50px;
    height: 50px;
    background: var(--color-secondary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto var(--spacing-sm);
    position: relative;
    border: 3px solid var(--color-bg);
}
.step h3 { margin-bottom: var(--spacing-xs); font-size: 1.3rem; }
.step p { color: var(--color-text-light); line-height: 1.8; font-size: 0.95rem; }

/* Animations */
@keyframes float {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =========================================
   MODAL STYLES
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: var(--spacing-sm);
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: #fff;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    position: relative;
}

.modal-header h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: #e4ddcd;
}

.modal-header p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.modal-close {
    position: absolute;
    top: 5px;
    right: 0px;
    width: 35px;
    height: 35px;
    background: #e30016;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
    font-size: 0.95rem;
}

.form-group label .required {
    color: var(--color-primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.file-upload-wrapper {
    position: relative;
}

.file-upload-label {
    display: block;
    padding: 20px;
    border: 2px dashed #e0e0e0;
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: #fafafa;
}

.file-upload-label:hover {
    border-color: var(--color-accent);
    background: #fff;
}

.file-upload-label i {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 10px;
}

.file-upload-label p {
    margin: 5px 0;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.file-upload-label .file-name {
    color: var(--color-primary);
    font-weight: 600;
    margin-top: 10px;
}

.file-upload-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: #02df79;
    color: var(--color-secondary);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 30, 63, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
    display: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message.success {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
    display: block;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =========================================
   MOBILE RESPONSIVE STYLES
   ========================================= */
@media (max-width: 768px) {
    .hero { padding: var(--spacing-lg) 0; }
    
    /* Stack Hero Buttons Vertically on Mobile */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin: 0;
    }
    .btn-outline {
        margin-left: 0;
    }

    /* Stack Job Cards Vertically */
    .job-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .job-info {
        width: 100%;
    }
    .job-action {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    /* Full Width Apply Button for Job Cards */
    .job-action .btn {
        width: 100%;
        text-align: center;
    }

    /* Benefits Grid Single Column */
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    /* Process Steps Stacked */
    .steps {
        flex-direction: column;
        gap: var(--spacing-md);
        padding-left: 20px;
    }
    .steps::before {
        display: none;
    }
    .step {
        padding: 0;
        text-align: left;
        display: flex;
        align-items: flex-start;
        gap: 15px;
    }
    .step-number {
        margin: 0;
        flex-shrink: 0;
    }
    .step-content {
        padding-top: 10px;
    }

    /* Modal Mobile Adjustments */
    .modal-content {
        max-height: 95vh;
        margin: 10px;
    }
    
    .modal-header {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: var(--spacing-sm);
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}