/* Global Styles */
:root {
    --primary-color: #eb7013;
    --secondary-color: #3d3d3d;
    --accent-color: #f2c49b;
    --light-color: #faf4f0;
    --dark-color: #2a2a2a;
    --light-accent: #f8e2d1;
    --primary-dark: #c45a0e;
    --text-light: #f9f9f9;
    --text-dark: #333333;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
    --menu-height: 70px;
    --success-color: #4caf50;
    --error-color: #f44336;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    top: -20px;
    align-items: center;
    justify-content: center;
    margin-top: var(--menu-height);
    overflow: hidden;
    background: linear-gradient(135deg, #2a2a2a 0%, #3d3d3d 100%);
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23eb7013" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(235, 112, 19, 0.1), rgba(61, 61, 61, 0.3));
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 100px 0;
}

.hero__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: white;
    margin-bottom: 30px;
    line-height: 1.2;
}

.hero__title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero__title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.hero__title-line--highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

/* Why Join Section */
.why-join {
    padding: 100px 0;
    background-color: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: var(--light-color);
    padding: 40px 30px;
    border-radius: 12px;
    transition: all var(--transition-speed);
    border: 2px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.benefit-card__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    transition: all var(--transition-speed);
}

.benefit-card:hover .benefit-card__icon {
    transform: rotate(5deg) scale(1.1);
}

.benefit-card__title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.benefit-card__text {
    color: var(--text-dark);
    line-height: 1.7;
    opacity: 0.9;
}

/* Positions Section */
.positions {
    background: linear-gradient(180deg, white 0%, var(--light-color) 100%);
}

.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 60px;
}

.job-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all var(--transition-speed);
}

.job-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.job-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    cursor: pointer;
    user-select: none;
}

.job-card__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.job-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.job-card__meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
    opacity: 0.8;
}

.job-card__meta-item svg {
    color: var(--primary-color);
}

.job-card__toggle {
    background: var(--light-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    flex-shrink: 0;
}

.job-card__toggle:hover {
    background: var(--primary-color);
    color: white;
}

.job-card__toggle-icon {
    transition: transform var(--transition-speed);
}

.job-card.active .job-card__toggle-icon {
    transform: rotate(180deg);
}

.job-card__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.job-card.active .job-card__content {
    max-height: 2000px;
    padding: 0 30px 30px;
    transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

.job-card__section {
    margin-bottom: 30px;
}

.job-card__section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.job-card__list {
    list-style: none;
    padding: 0;
}

.job-card__list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 12px;
    line-height: 1.6;
}

.job-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.job-card__actions {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Initiative Application */
.initiative-application {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    color: white;
}

.initiative-application__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.initiative-application__text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Application Section */
.application {
    padding: 100px 0;
    background: var(--light-color);
}

.application-form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.progress-bar__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    position: relative;
    z-index: 2;
}

.progress-bar__circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-dark);
    transition: all var(--transition-speed);
    border: 3px solid transparent;
}

.progress-bar__step.active .progress-bar__circle {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.progress-bar__step.completed .progress-bar__circle {
    background: var(--success-color);
    color: white;
}

.progress-bar__label {
    font-size: 0.85rem;
    text-align: center;
    color: var(--text-dark);
    opacity: 0.7;
    transition: opacity var(--transition-speed);
}

.progress-bar__step.active .progress-bar__label {
    opacity: 1;
    font-weight: 600;
}

.progress-bar__line {
    position: absolute;
    top: 25px;
    width: 100%;
    height: 3px;
    background: var(--border-color);
    z-index: 1;
    transition: background var(--transition-speed);
}

.progress-bar__step.completed + .progress-bar__line {
    background: var(--success-color);
}

/* Form Steps */
.form-step {
    display: none;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.form-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-step__title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

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

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: all var(--transition-speed);
    background: white;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(235, 112, 19, 0.1);
}

.form-input.error {
    border-color: var(--error-color);
}

.form-error {
    display: block;
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 20px;
}

/* Radio and Checkbox */
.radio-group,
.checkbox-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
}

.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.radio-custom,
.checkbox-custom {
    display: block;
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    transition: all var(--transition-speed);
    position: relative;
}

.checkbox-custom {
    border-radius: 4px;
}

.radio-label input[type="radio"]:checked + .radio-custom,
.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    transition: transform var(--transition-speed);
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 14px;
    font-weight: bold;
    transition: transform var(--transition-speed);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.checkbox-label--large {
    align-items: flex-start;
}

.checkbox-label--large .checkbox-custom {
    margin-top: 2px;
}

/* File Upload */
.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload__label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-speed);
    background: var(--light-color);
}

.file-upload__label:hover {
    border-color: var(--primary-color);
    background: white;
}

.file-upload input[type="file"]:focus + .file-upload__label {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(235, 112, 19, 0.1);
}

.file-upload__icon {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.file-upload__text {
    color: var(--text-dark);
    font-size: 0.95rem;
    text-align: center;
}

.file-upload__filename {
    display: none;
    margin-top: 10px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.file-upload.has-file .file-upload__text {
    display: none;
}

.file-upload.has-file .file-upload__filename {
    display: block;
}

.file-upload.has-file .file-upload__label {
    border-color: var(--success-color);
    background: rgba(76, 175, 80, 0.05);
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 15px;
}

.btn--prev,
.btn--next,
.btn--submit {
    min-width: 150px;
    align-items: center;
    justify-content: center;
}

.btn--next {
    margin-left: auto;
}

/* Form Summary */
.form-summary {
    background: var(--light-color);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.form-summary__title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.form-summary__content {
    display: grid;
    gap: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.summary-item__label {
    font-weight: 500;
    color: var(--text-dark);
}

.summary-item__value {
    color: var(--dark-color);
    text-align: right;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 60px 40px;
}

.success-message__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    color: var(--success-color);
}

.success-message__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.success-message__text {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* AOS Animations */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

/* Loading State */
.btn--loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn--loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spinner 0.8s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .job-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .job-card__toggle {
        align-self: flex-end;
    }

    .application-form-wrapper {
        padding: 30px 20px;
    }

    .progress-bar {
        overflow-x: auto;
        padding: 10px;
    }

    .progress-bar__label {
        font-size: 0.75rem;
    }

    .progress-bar__line {
        top: 33px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .btn--next {
        margin-left: 0;
    }

    .initiative-application {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }

    .stat-card {
        flex: 1 1 100%;
    }

    .progress-bar__step {
        min-width: 110px;
    }
}