/* Vakancu saraksta, statusu un pieteiksanas bloku stili. */

/* ===== ANIMĀCIJAS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-section,
.vacancy-card,
.step-item,
.benefit-card,
.kontakti-box,
.faq-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.vacancy-card:nth-child(1) { animation-delay: 0.1s; }
.vacancy-card:nth-child(2) { animation-delay: 0.15s; }
.vacancy-card:nth-child(3) { animation-delay: 0.2s; }

.step-item:nth-child(1) { animation-delay: 0.1s; }
.step-item:nth-child(2) { animation-delay: 0.2s; }
.step-item:nth-child(3) { animation-delay: 0.3s; }

.benefit-card:nth-child(1) { animation-delay: 0.1s; }
.benefit-card:nth-child(2) { animation-delay: 0.15s; }
.benefit-card:nth-child(3) { animation-delay: 0.2s; }
.benefit-card:nth-child(4) { animation-delay: 0.25s; }
.benefit-card:nth-child(5) { animation-delay: 0.3s; }
.benefit-card:nth-child(6) { animation-delay: 0.35s; }

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.15s; }
.faq-item:nth-child(3) { animation-delay: 0.2s; }
.faq-item:nth-child(4) { animation-delay: 0.25s; }

/* ===== VAKANČU LAPA ===== */
.vakances-page {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Atpakaļ saite */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #520505;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 30px;
    transition: all 0.2s;
    background: white;
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid #520505;
    box-shadow: 0 2px 8px rgba(82,5,5,0.1);
    position: relative;
    z-index: 3;
}

.back-link:hover {
    background: #520505;
    color: white;
    transform: translateX(-5px);
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 3;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #520505;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #ffcc00, #ffd700);
    border-radius: 2px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 20px auto 0;
}

.vakances-success-message {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    max-width: 800px;
    margin: 0 auto 35px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f3fff5 0%, #e1f7e7 100%);
    border: 1px solid rgba(40, 167, 69, 0.25);
    border-left: 5px solid #28a745;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(40, 167, 69, 0.12);
    position: relative;
    z-index: 3;
    transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.4s ease, margin 0.4s ease, padding 0.4s ease;
    max-height: 200px;
    overflow: hidden;
}

.vakances-success-message.is-hidden {
    opacity: 0;
    transform: translateY(-8px);
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
}

.vakances-success-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #28a745;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(40, 167, 69, 0.2);
}

.vakances-success-content strong {
    display: block;
    color: #166534;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.vakances-success-content p {
    margin: 0;
    color: #285c34;
    line-height: 1.6;
}

.section-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #520505;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #ffcc00;
    border-radius: 2px;
}

/* ===== IEVADA SEKCIJA ===== */
.intro-section {
    background: white;
    border-radius: 30px;
    padding: 50px;
    margin-bottom: 60px;
    box-shadow: 0 15px 35px rgba(82,5,5,0.1);
    border: 1px solid rgba(82,5,5,0.1);
    position: relative;
    z-index: 3;
    overflow: hidden;
}

.intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #520505, #ffcc00);
}

.intro-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.intro-icon {
    width: 100px;
    height: 100px;
    background: #520505;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    flex-shrink: 0;
    box-shadow: 0 15px 30px rgba(82,5,5,0.2);
}

.intro-text {
    flex: 1;
}

.intro-text h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #520505;
    margin-bottom: 15px;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3748;
}

/* ===== AKTĪVĀS VAKANCES - BALTAS KARTES ===== */
.active-vacancies-section {
    margin-bottom: 60px;
    position: relative;
    z-index: 3;
}

.vacancies-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.vacancy-card {
    background: white;
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 15px 35px rgba(82,5,5,0.1);
    border: 1px solid rgba(82,5,5,0.1);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.vacancy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(82,5,5,0.15);
    border-color: #ffcc00;
}

.vacancy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #520505, #ffcc00);
}

.vacancy-card.selected {
    border: 2px solid #ffcc00;
    box-shadow: 0 0 0 3px rgba(255,204,0,0.3);
    transform: translateY(-2px);
}

.vacancy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.vacancy-header h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #520505;
}

.vacancy-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
}

.vacancy-status.active {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid #28a745;
}

.vacancy-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2d3748;
    font-size: 0.95rem;
}

.detail-item i {
    color: #ffcc00;
    width: 20px;
}

.vacancy-description {
    margin-bottom: 25px;
}

.vacancy-description p {
    color: #2d3748;
    line-height: 1.7;
    margin-bottom: 15px;
}

.vacancy-description ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.vacancy-description li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2d3748;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.vacancy-description li::before {
    content: "•";
    color: #ffcc00;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ===== KĀ PIETEIKTIES VAKANCEI? - BORDO KARTE ===== */
.how-to-apply-section {
    margin-bottom: 60px;
    position: relative;
    z-index: 3;
}

.how-to-apply-section .section-heading {
    color: #520505;
}

.steps-container {
    background: #520505;
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 15px 35px rgba(82,5,5,0.25);
    border: 2px solid #ffcc00;
    position: relative;
    z-index: 3;
    overflow: hidden;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,204,0,0.1) 0%, transparent 70%);
    opacity: 0.3;
    transition: opacity 0.5s;
}

.steps-container:hover::before {
    opacity: 0.5;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #ffcc00;
    color: #520505;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.step-item:hover .step-number {
    background: white;
    transform: scale(1.1);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffcc00;
    margin-bottom: 8px;
}

.step-content p {
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
}

.step-content a {
    color: #ffcc00;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.step-content a:hover {
    color: white;
    text-decoration: underline;
}

.contact-inform {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.contact-inform p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.contact-inform i {
    color: #ffcc00;
    width: 20px;
}

.contact-inform a {
    color: white;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-inform a:hover {
    color: #ffcc00;
}

/* ===== PIETEIKUMA FORMA ===== */
.pieteikuma-forma-section {
    margin-bottom: 50px;
    position: relative;
    z-index: 3;
}

.pieteikuma-forma-container {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(82,5,5,0.1);
    border: 1px solid rgba(82,5,5,0.1);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.pieteikuma-forma-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #520505, #ffcc00);
}

.pieteikuma-forma {
    width: 100%;
}

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

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #520505;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
    font-family: inherit;
}

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

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

.form-submit {
    text-align: center;
    margin-top: 20px;
}

.pieteikties-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #520505;
    color: white;
    padding: 14px 35px;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.pieteikties-btn:hover {
    background: #7a0f0f;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(82,5,5,0.2);
}

.pieteikties-btn i {
    transition: transform 0.3s;
}

.pieteikties-btn:hover i {
    transform: translateX(5px);
}

/* ===== VAIRĀKU FAILU AUGŠUPIELĀDES STILS ===== */
.file-info-text {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 12px;
}

.multi-file-upload-wrapper {
    width: 100%;
}

.file-upload-area {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.file-upload-preview {
    border: 2px dashed #e9ecef;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s;
    cursor: pointer;
}

.file-upload-area:hover .file-upload-preview {
    border-color: #ffcc00;
    background: #fff9e6;
}

.file-upload-preview i {
    font-size: 2.5rem;
    color: #520505;
    margin-bottom: 10px;
}

.file-upload-preview p {
    color: #520505;
    margin-bottom: 5px;
    font-weight: 500;
}

.file-info {
    font-size: 0.8rem;
    color: #6c757d;
    display: block;
}

.add-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #520505;
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 15px;
}

.add-file-btn:hover {
    background: #7a0f0f;
    transform: translateY(-2px);
}

/* Izvēlēto failu saraksts */
.selected-files-list {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
}

.selected-files-list h4 {
    font-size: 1rem;
    color: #520505;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.selected-files-list h4 i {
    font-size: 1rem;
}

.files-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    transition: all 0.3s;
    animation: fadeInUp 0.3s ease;
}

.file-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.file-info-display {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.file-info-display i {
    font-size: 1.2rem;
    color: #28a745;
}

.file-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.file-name-display {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2d3748;
    word-break: break-all;
}

.file-size {
    font-size: 0.7rem;
    color: #6c757d;
}

.remove-file-item {
    background: #dc3545;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-file-item:hover {
    background: #c82333;
    transform: scale(1.1);
}

.empty-files-message {
    text-align: center;
    padding: 30px;
    color: #6c757d;
}

.empty-files-message i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* Limit sasniegšanas brīdinājums */
.file-limit-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    animation: fadeInUp 0.3s ease;
}

.file-limit-warning i {
    font-size: 1rem;
}

/* Drag and drop stils */
.file-upload-area.drag-over .file-upload-preview {
    border-color: #ffcc00;
    background: #fff9e6;
    transform: scale(1.02);
}

/* ===== NOŅEM HORIZONTĀLĀS RITJOSLAS ===== */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.vakances-page {
    overflow-x: hidden;
}

.container {
    overflow-x: hidden;
}

/* Pārliecinās, ka visas sadaļas neiziet ārpus ekrāna */
.intro-section,
.vacancy-card,
.steps-container,
.faq-section,
.benefits-section,
.pieteikuma-forma-section {
    overflow-x: hidden;
}

/* Tabulām un režģiem pievieno automātisko pārlaušanu */
.vacancies-grid,
.benefits-grid,
.gallery-grid {
    overflow-x: hidden;
}

/* Failu sarakstam saglabā vertikālo ritjoslu, bet horizontālo noņem */
.files-container {
    overflow-x: hidden;
    overflow-y: auto;
}

.file-item {
    flex-wrap: wrap;
}

.file-info-display {
    min-width: 0;
    flex: 1;
}

.file-name-display {
    word-break: break-word;
    overflow-wrap: break-word;
}


/* ===== FAILU AUGŠUPIELĀDES STILS ===== */
.file-upload-wrapper {
    width: 100%;
}

.file-upload-area {
    position: relative;
    width: 100%;
}

.file-upload-area input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-preview {
    border: 2px dashed #e9ecef;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s;
    cursor: pointer;
}

.file-upload-area:hover .file-upload-preview {
    border-color: #ffcc00;
    background: #fff9e6;
}

.file-upload-preview i {
    font-size: 3rem;
    color: #520505;
    margin-bottom: 10px;
}

.file-upload-preview p {
    color: #520505;
    margin-bottom: 5px;
    font-weight: 500;
}

.file-info {
    font-size: 0.8rem;
    color: #6c757d;
    display: block;
}

.selected-file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #e9ecef;
    padding: 12px 18px;
    border-radius: 8px;
    margin-top: 12px;
    animation: fadeInUp 0.3s ease;
    border-left: 4px solid #28a745;
}

.selected-file-info i {
    color: #28a745;
    font-size: 1.2rem;
}

.selected-file-info .file-name {
    flex: 1;
    font-size: 0.9rem;
    color: #2d3748;
    word-break: break-all;
    font-weight: 500;
}

.selected-file-info .remove-file {
    background: #dc3545;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.selected-file-info .remove-file:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* ===== FAQ - BALTAS KARTES ===== */
.faq-section {
    margin-bottom: 60px;
    position: relative;
    z-index: 3;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(82,5,5,0.1);
    transition: all 0.3s;
    position: relative;
}

.faq-item:hover {
    border-color: #ffcc00;
    box-shadow: 0 5px 15px rgba(82,5,5,0.1);
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #520505, #ffcc00);
    opacity: 0;
    transition: opacity 0.3s;
}

.faq-item:hover::before {
    opacity: 1;
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: white;
    transition: background 0.3s;
}

.faq-question:hover {
    background: rgba(82,5,5,0.02);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #520505;
    margin: 0;
}

.faq-question i {
    color: #520505;
    font-size: 1rem;
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.faq-item.active .faq-answer {
    padding: 20px 25px;
    max-height: 300px;
    border-top: 1px solid rgba(82,5,5,0.05);
}

.faq-answer p {
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* ===== PRIEKŠROCĪBAS - BORDO KARTES ===== */
.benefits-section {
    margin-bottom: 60px;
    position: relative;
    z-index: 3;
}

.benefits-section .section-heading {
    color: #520505;
}

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

.benefit-card {
    background: #520505;
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(82,5,5,0.25);
    border: 2px solid #ffcc00;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(82,5,5,0.3);
    background: #7a0f0f;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,204,0,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-card i {
    font-size: 2.5rem;
    color: #ffcc00;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.benefit-card:hover i {
    transform: scale(1.2);
}

.benefit-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
}

.benefit-card p {
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===== RESPONSĪVAIS DIZAINS ===== */
@media (max-width: 992px) {
    .page-title {
        font-size: 2.2rem;
    }
    
    .intro-content {
        flex-direction: column;
        text-align: center;
    }
    
    .vacancy-header h3 {
        font-size: 1.4rem;
    }
    
    .steps-container {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .section-heading {
        font-size: 1.8rem;
    }
    
    .intro-section {
        padding: 30px;
    }
    
    .intro-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .intro-text h2 {
        font-size: 1.5rem;
    }
    
    .intro-text p {
        font-size: 1rem;
    }
    
    .vacancy-card {
        padding: 25px;
    }
    
    .vacancy-header h3 {
        font-size: 1.3rem;
    }
    
    .vacancy-details {
        flex-direction: column;
        gap: 10px;
    }
    
    .step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pieteikuma-forma-container {
        padding: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.8rem;
    }

    .vakances-success-message {
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
    }

    .vakances-success-icon {
        width: 40px;
        height: 40px;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .section-heading {
        font-size: 1.6rem;
    }
    
    .intro-section {
        padding: 20px;
    }
    
    .intro-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .vacancy-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        padding: 25px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .pieteikuma-forma-container {
        padding: 20px;
    }

    @media (max-width: 768px) {
        .vacancy-card,
        .step-item,
        .benefit-card {
            overflow-x: hidden;
        }
        
        .vacancy-details {
            flex-wrap: wrap;
        }
        
        .detail-item {
            width: 100%;
        }
    }

}