.section-careers-form {
    padding-bottom: 40px;
    margin-bottom: 50px;
}

.section-careers-form .section-title {
    text-align: center;
    margin: auto;
}
.form-success-text {
    font-family: "radikalregular", Helvetica, Arial, sans-serif;
    color: #39af72;
    font-size: 13px;
    line-height: 1.214285714285714;
    letter-spacing: 0.8px;
    margin: 12px 0 0;
    display: none;
}

.cv-file-input {
    display: none;
}

.btn-attach-cv {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #ffffff;
    color: #333;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-family: "radikalregular", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-attach-cv:hover {
    background-color: #f8f8f8;
    border-color: #999;
}

.btn-attach-cv .icon-paperclip {
    font-size: 16px;
}

.cv-files-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.cv-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 8px;
}

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

.cv-file-icon {
    font-size: 18px;
}

.cv-file-details {
    flex: 1;
}

.cv-file-name {
    font-family: "radikalregular", Helvetica, Arial, sans-serif;
    font-size: 13px;
    color: #333;
    display: block;
}

.cv-file-size {
    font-family: "radikalregular", Helvetica, Arial, sans-serif;
    font-size: 11px;
    color: #999;
    margin-top: 2px;
    display: block;
}

.btn-remove-cv {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 20px;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.2s ease;
}

.btn-remove-cv:hover {
    color: #666;
}
.form-error-text {
    color: #f00;
    font-size: 12px;
    margin-top: 5px;
}
.form-field.error .form-input,
.form-field.error .btn-attach-cv {
    border-color: #f00 !important;
}
.cv-validation-error {
    color: #f00;
    font-size: 12px;
    margin-top: 8px;
    display: none;
}
.form-field.error select {
    border-color: #f00 !important;
}

/* Country Code Dropdown Styles */
.phone-input-wrapper {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.country-code-select {
    width: 100px;
    padding: 0 0 8px 0;
    font-family: "radikalregular", Helvetica, Arial, sans-serif;
    font-size: 14px;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0;
    background-color: transparent;
    cursor: pointer;
    transition: border-color 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.41 0L6 4.59L10.59 0L12 1.41l-6 6l-6-6z'/%3E%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 20px;
}

/* Custom country code picker (replaces native select) */
.country-code-picker {
    position: relative;
    width: 90px; /* reduced field width */
}
.country-code-selected {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 6px; /* slightly tighter vertical padding */
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(35, 37, 44, 0.3); /* match form underline */
    border-radius: 0;
    cursor: pointer;
    font-family: "radikalregular", Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #333;
    min-width: 70px; /* reduced min width */
}
.country-code-selected .caret {
    color: #666;
    margin-left: 6px;
}
.country-code-selected:focus {
    outline: none;
}
.country-code-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100px; /* increased width to accommodate codes */
    max-height: 260px;
    /* use system UI colors to better match native Windows / macOS dropdowns */
    background: #ffffff; /* use page white to match site style */
    color: #333; /* match other form text */
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0; /* native dropdowns are typically square */
    box-shadow: none;
    box-sizing: border-box;
    padding: 6px 0; /* ensure internal padding doesn't cause overflow */
    z-index: 40;
    display: none;
    overflow: hidden; /* clip any content that exceeds bounds */
}
.country-code-search {
    width: calc(100% - 20px);
    margin: 8px 10px 6px 10px;
    padding: 6px 8px;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: transparent;
    color: #333;
    font-size: 14px;
    box-sizing: border-box;
}

.country-code-search:focus {
    outline: none;
    box-shadow: none;
}

.country-code-search::placeholder {
    color: #999;
}
.country-code-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 220px;
    width: 100%;
    box-sizing: border-box;
}
.country-code-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 14px;
    color: #777;
    font-weight: 400;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}
.country-code-item:hover,
.country-code-item:focus {
    background: #f2f2f2;
    color: #333;
}
.country-flag {
    font-size: 18px;
    flex: 0 0 22px; /* fixed width for flag */
    width: 22px;
    line-height: 1;
}
.country-code-text {
    font-weight: 600;
    flex: 0 0 auto; /* let code take natural width */
    min-width: 45px;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Make list code text same weight/color as labels */
.country-code-item .country-code-text {
    font-weight: 400;
    color: #777;
}

/* Selected picker should not be bold; make it grey like other labels */
.country-code-selected .country-code-text {
    font-weight: 400;
    color: #777;
}
.country-name {
    color: #777;
    font-size: 13px;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ensure phone input lines up */
.phone-input-wrapper {
    align-items: center;
}

.country-code-select:focus {
    outline: none;
    border-bottom-color: rgba(0, 0, 0, 0.3);
}

.phone-input-wrapper .form-input_phone {
    flex: 1;
}

/* ensure country picker and phone input align visually on small widths */
.country-code-picker {
    display: flex;
    align-items: center;
}
.country-code-selected {
    line-height: 1.2;
}
.phone-input-wrapper .form-input_phone {
    padding: 9px 0;
}

.form-field.error .country-code-select {
    border-bottom-color: #f00 !important;
}
.work-life-section {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
    padding-top: 100px;
    padding-bottom: 40px;
    margin-bottom: 50px;
}

.work-life-intro {
    text-align: center;
    margin-bottom: 50px;
}

.work-life-intro h2 {
    font-family: "radikalregular", Helvetica, Arial, sans-serif;
    font-size: 34px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 500;
}

.work-life-intro p {
    font-family: "radikalregular", Helvetica, Arial, sans-serif;
    font-size: 22px;
    color: #666;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.value-card {
    background: #fafafa;
    padding: 30px;
    border-radius: 4px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.value-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.value-card h3 {
    font-family: "radikalregular", Helvetica, Arial, sans-serif;
    font-size: 22px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 500;
}

.value-card p {
    font-family: "radikalregular", Helvetica, Arial, sans-serif;
    font-size: 18px;
    color: #666;
    line-height: 1.6;
}

.benefits-section {
    background: #f5f5f5;
    padding: 50px 30px;
    border-radius: 4px;
    margin-bottom: 60px;
}

.benefits-section h2 {
    font-family: "radikalregular", Helvetica, Arial, sans-serif;
    font-size: 34px;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 500;
}

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

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.benefit-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 1.5rem;
}

.benefit-content h4 {
    font-family: "radikalregular", Helvetica, Arial, sans-serif;
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 500;
}

.benefit-content p {
    font-family: "radikalregular", Helvetica, Arial, sans-serif;
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

.testimonials-section {
    margin-bottom: 60px;
}

.testimonials-section h2 {
    font-family: "radikalregular", Helvetica, Arial, sans-serif;
    font-size: 28px;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 500;
}

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

.testimonial-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 30px;
    border-radius: 4px;
}

.testimonial-text {
    font-family: "radikalregular", Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    font-family: "radikalregular", Helvetica, Arial, sans-serif;
    font-size: 13px;
    color: #999;
}

.divider-section {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
    margin: 30px 0;
}

body[data-page="careers"] header {
    background-color: rgba(245, 245, 245, 0.9);
}
body[data-page="careers"] .page-contacts,
body[data-page="careers"] .section-content {
    background: transparent !important;
}
body[data-page="careers"] .l-wrapper {
    background-color: whitesmoke;
    -webkit-transition: background-color 0.4s ease-out;
    transition: background-color 0.4s ease-out;
}
body[data-page="careers"] .contacts-group-item {
    border-color: #ededed;
    -webkit-transition: border-color 0.4s ease-out;
    transition: border-color 0.4s ease-out;
}
body[data-page="careers"].gray_black-scene header {
    background-color: rgba(35, 37, 44, 0.9);
}
body[data-page="careers"].gray_black-scene .l-wrapper {
    background-color: #23252c;
}
body[data-page="careers"].gray_black-scene .contacts-group-item {
    border-color: #4e5055;
}

.page-careers {
    background: #f5f5f5;
    zoom: 1;
}

.page-careers:before,
.page-careers:after {
    content: "";
    display: table;
}

.page-careers:after {
    clear: both;
}

.page-careers .section-title {
    font-size: 66px;
    line-height: 1.272727272727273;
}

.join-us-message {
    text-align: center;
    padding: 0px 20px 60px;
    margin: 0 0 0 0;
}

.join-us-message h3 {
    font-size: 32px;
    color: #333;
    line-height: 1.4;
    font-weight: 400;
    margin-bottom: 18px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.5px;
}

.join-us-message p {
    font-size: 19px;
    color: #666;
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto;
    font-weight: 300;
}

@media (max-width: 768px) {
    .join-us-message {
        padding: 50px 20px 40px;
    }

    .join-us-message h3 {
        font-size: 22px;
    }

    .join-us-message p {
        font-size: 16px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .work-life-intro h2 {
        font-size: 26px;
    }

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

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

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