/* extracted from view/careers.php — порядок блоков сохранён */

/* --- block 1 --- */
/* ========================================
   Section 1: Hero
   ======================================== */
.careers-hero {
    background: linear-gradient(rgba(15,17,20,0.75), rgba(15,17,20,0.75)), url('/images/career-bl.webp') center/cover no-repeat;
        padding: 115px 100px 50px 100px;
    text-align: center;
}

.careers-breadcrumb {
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.careers-breadcrumb a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.careers-breadcrumb a:hover {
    color: #7a6a54;
}

.careers-breadcrumb span {
    color: rgba(255,255,255,0.4);
    margin: 0 8px;
}

.careers-breadcrumb span:last-child {
    color: #7a6a54;
    margin: 0;
}

.careers-hero-title {
    color: #fff;
    font-family: 'Alexandria', sans-serif;
    font-weight: 300;
    font-size: 3.5rem;
    margin: 0 0 15px;
    line-height: 1.2;
}

.careers-hero-subtitle {
    color: #7a6a54;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.5rem;
    margin: 0 0 20px;
}

.careers-hero-lead {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin: 0 0 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.careers-hero-btn {
    display: inline-block;
    background: #7a6a54;
    color: #fff;
    padding: 14px 45px;
    border-radius: 6px;
    font-family: 'Alexandria', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: background 0.3s, transform 0.3s;
}

.careers-hero-btn:hover {
    background: #8a7a68;
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

/* ========================================
   Section 2: Why Join
   ======================================== */
.careers-why-join {
    background: #fff;
    padding: 30px 0;
}

.careers-section-subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #7a6a54;
    font-size: 1.1rem;
    text-align: center;
    margin: 0 0 10px;
}

.careers-section-title {
    font-family: 'Alexandria', sans-serif;
    font-weight: 300;
    font-size: 2.5rem;
    text-align: center;
    margin: 0 0 40px;
    color: #1a1a1a;
}

.careers-intro-text {
    max-width: 800px;
    margin: 0 auto 20px;
    text-align: center;
    color: #495057;
    font-size: 1rem;
    line-height: 1.7;
}

.careers-why-join-grid {
    display: flex;
    gap: 60px;
    align-items: stretch;
}

.careers-why-join-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.careers-btn-about {
    display: inline-block;
    background: transparent;
    color: #7a6a54;
    border: 2px solid #7a6a54;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.careers-btn-about:hover {
    background: #7a6a54;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(154,138,120,0.3);
}

.careers-benefits-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.careers-benefit-card {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.careers-benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.careers-benefit-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background: #7a6a54;
    display: flex;
    align-items: center;
    justify-content: center;
}

.careers-benefit-text h4 {
    font-family: 'Alexandria', sans-serif;
    font-weight: 400;
    font-size: 1.05rem;
    margin: 0 0 6px;
    color: #1a1a1a;
}

.careers-benefit-text p {
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* ========================================
   Section 3: Open Positions
   ======================================== */
.careers-positions {
    background: #f8f9fa;
    padding: 20px 0;
}

.careers-positions-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.05);
    overflow: hidden;
}

.careers-position-row {
    display: grid;
    grid-template-columns: 1fr 120px 120px 160px;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.careers-position-row:hover {
    background: #fafafa;
}

.careers-position-row-last {
    border-bottom: none;
}

.careers-position-info {
}

.careers-position-title {
    font-family: 'Alexandria', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    margin: 0 0 5px;
    color: #1a1a1a;
}

.careers-position-desc {
    color: #495057;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.careers-position-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #495057;
    font-size: 0.85rem;
    white-space: nowrap;
    justify-content: center;
}

.careers-position-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f0ede9;
    color: #7a6a54;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    justify-content: center;
}

.careers-position-action {
    text-align: right;
}

.careers-btn-apply {
    background: #7a6a54;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.careers-btn-apply:hover {
    background: #8A7A68;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(154,138,120,0.3);
}

/* ========================================
   Section 4: What We Expect & Offer
   ======================================== */
.careers-expect-offer {
    background: #fff;
    padding: 30px 0;
}

.careers-two-columns {
    display: flex;
    gap: 60px;
}

.careers-column {
    flex: 1;
}

.careers-column-title {
    font-family: 'Alexandria', sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    color: #1a1a1a;
    margin: 0 0 30px;
    padding-left: 20px;
    border-left: 4px solid #7a6a54;
}

.careers-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 40px;
}

.careers-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.5;
    break-inside: avoid;
}

.careers-checklist li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.careers-quote {
    margin-top: 30px;
    padding: 20px 25px;
    background: #f8f9fa;
    border-left: 4px solid #7a6a54;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================
   Section 5: Working Details
   ======================================== */
.careers-working-details {
    background: #f8f9fa;
    padding: 40px 0;
}

.careers-details-row {
    display: flex;
    gap: 25px;
}

.careers-detail-card {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    padding: 20px 25px;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.careers-detail-card:hover {
    transform: translateY(-5px);
}

.careers-detail-icon {
    margin-bottom: 15px;
}

.careers-detail-label {
    font-family: 'Alexandria', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.careers-detail-value {
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* ========================================
   Section 6: CTA
   ======================================== */
.careers-cta {
    background: #0F1114;
    padding: 50px 0;
    text-align: center;
}

.careers-cta-title {
    color: #fff;
    font-family: 'Alexandria', sans-serif;
    font-weight: 300;
    font-size: 2.5rem;
    margin: 0 0 10px;
}

.careers-cta-subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #7a6a54;
    font-size: 1.2rem;
    margin: 0 0 35px;
}

.careers-cta-btn {
    background: #7a6a54;
    color: #fff;
    border: none;
    padding: 16px 50px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s;
}

.careers-cta-btn:hover {
    background: #8A7A68;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(154,138,120,0.3);
}

.careers-cta-email {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin: 25px 0 0;
}

.careers-cta-email a {
    color: #7a6a54;
    text-decoration: none;
    transition: color 0.3s;
}

.careers-cta-email a:hover {
    color: #b9a998;
}

/* ========================================
   Inline Application Form (accordion style)
   ======================================== */
.inline-application {
    background: #fff;
    overflow: hidden;
    border-top: 2px solid #7a6a54;
}

.inline-app-bar {
    padding: 15px 30px;
    background: #f8f6f3;
    border-bottom: 1px solid #eee;
}

.inline-app-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7a6a54;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.inline-app-back:hover {
    color: #0F1114;
}

.inline-app-body {
    padding: 25px 30px;
    width: 100%;
    box-sizing: border-box;
}

#applicationForm {
    width: 100%;
}

.inline-app-footer {
    padding: 15px 30px;
    background: #f8f8f8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e0e0e0;
}

/* Active position row — accordion header */
.careers-position-row.active-position {
    background: #f8f6f3;
    border-left: 4px solid #7a6a54;
    border-bottom: none;
}

.careers-position-row.active-position .careers-btn-apply {
    display: none;
}

.careers-position-row .careers-btn-collapse {
    display: none;
}

.careers-position-row.active-position .careers-btn-collapse {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #7a6a54;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: auto;
}

.careers-position-row.active-position .careers-btn-collapse:hover {
    background: #8a7a68;
    transform: rotate(180deg);
}

.careers-position-row.active-position .careers-btn-collapse svg {
    stroke: #fff;
}

.form-section {
    margin-bottom: 10px;
    padding-bottom: 18px;
    padding-top: 18px;
    border-bottom: 2px solid #f0f0f0;
    width: 100%;
    box-sizing: border-box;
}

.form-section:first-of-type {
    padding-top: 0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #000;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.form-section h3::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 20px;
    background: #7a6a54;
    margin-right: 10px;
}

/* Unified form grid */
.form-row,
.upload-grid {
    display: grid !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    column-gap: 12px !important;
    row-gap: 0 !important;
    margin-bottom: 8px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.form-row { grid-template-columns: repeat(2, 1fr) !important; }
.form-row-4 { grid-template-columns: repeat(4, 1fr) !important; }
.form-row-3 { grid-template-columns: repeat(3, 1fr) !important; }
.upload-grid { grid-template-columns: repeat(2, 1fr) !important; }

/* Employment type: all radios in a single row */
.radio-group.radio-group-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.form-group {
    margin-bottom: 8px;
    position: relative;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* No extra margin inside grid rows */
.form-row .form-group,
.upload-grid .form-group {
    margin-bottom: 0;
    width: auto !important;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
	margin-top: 10px;
    font-weight: 500;
    color: #333;
    font-size: 13px;
    transition: all 0.2s;
}

.form-group label.required::after {
    content: " *";
    color: #d32f2f;
}

.form-control {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.3s;
    box-sizing: border-box !important;
    font-family: inherit;
    color: #333;
    background-color: #fff;
}

.form-control::placeholder {
    color: #999;
    opacity: 1;
    font-size: 13px;
}

.form-control:focus {
    outline: none;
    border-color: #7a6a54;
    box-shadow: 0 0 0 3px rgba(154,138,120,0.15);
    background-color: #fff;
}

.form-control[readonly] {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

.form-control:disabled {
    background-color: #e9ecef;
    opacity: 1;
    cursor: not-allowed;
}

/* All checkbox groups in horizontal grid */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 6px;
}

/* GDPR consent checkboxes - keep vertical for readability */
.form-section:last-of-type .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* All radio groups in horizontal 2-column grid */
.radio-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.checkbox-item, .radio-item {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}

.form-section:first-of-type .checkbox-item,
.form-section:first-of-type .radio-item {
    padding: 8px;
}

.checkbox-item:hover, .radio-item:hover {
    background: #f5f5f5;
    border-color: #e0e0e0;
}

.checkbox-item input[type="checkbox"],
.radio-item input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin-right: 10px;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.checkbox-item input[type="checkbox"]:checked,
.radio-item input[type="radio"]:checked {
    border-color: #7a6a54;
    background: #7a6a54;
}

.checkbox-item input[type="checkbox"]:checked::after,
.radio-item input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-item input[type="checkbox"]:hover,
.radio-item input[type="radio"]:hover {
    border-color: #7a6a54;
}

.checkbox-item label,
.radio-item label {
    margin: 0;
    cursor: pointer;
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    font-family: inherit;
}

.file-upload {
    border: 2px dashed #ddd;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    transition: all 0.3s;
    background: #fafafa;
}

.file-upload:hover {
    border-color: #7a6a54;
    background: #f5f5f5;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-label {
    display: inline-block;
    padding: 7px 16px;
    background: #fff;
    color: #000;
    border: 2px solid #000;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 600;
}

.file-upload-label:hover {
    background: #f5f5f5;
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.file-list {
    margin-top: 15px;
    text-align: left;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.file-item:hover {
    border-color: #000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.file-item button {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    font-weight: 500;
}

.file-item button:hover {
    background: #c82333;
    transform: translateY(-1px);
}

textarea.form-control {
    min-height: 65px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.datepicker-field {
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px 18px;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
}

.datepicker-field:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%239A8A78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
}

/* Better focus styles for accessibility */
.form-control:focus-visible,
.checkbox-item:focus-within,
.radio-item:focus-within {
    outline: 2px solid #7a6a54;
    outline-offset: 2px;
}

/* Number input styling */
input[type="number"].form-control {
    -moz-appearance: textfield;
}

input[type="number"].form-control::-webkit-outer-spin-button,
input[type="number"].form-control::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* .modal-footer removed — replaced by .inline-app-footer */

.btn-submit {
    background: #7a6a54;
    color: white;
    padding: 12px 35px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover:not(:disabled) {
    background: #8A7A68;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(154,138,120,0.25);
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
}

.form-error {
    font-size: 11px;
    margin-top: 4px;
    padding: 0;
    color: #c0392b;
    display: none;
    animation: fadeInError 0.3s ease;
}

@keyframes fadeInError {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group.error .form-control,
.form-group.error select.form-control {
    border-color: #e74c3c;
    background: #fef5f5;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group.error label {
    color: #c0392b;
}

.form-group.error .form-error {
    display: block;
}

/* Error state for radio/checkbox groups */
.form-group.error .radio-group,
.form-group.error .radio-group-inline,
.form-group.error .checkbox-group {
    background: #fef5f5;
    border-radius: 6px;
    padding: 8px;
    border: 1px solid #e74c3c;
}

/* Error state for file upload areas */
.form-group.error .upload-area {
    border-color: #e74c3c;
    background: #fef5f5;
}

/* Error state for declaration checkboxes */
.form-group.error .checkbox-item input[type="checkbox"] {
    border-color: #e74c3c;
}

.form-group.success .form-control {
    border-color: #28a745;
}

.success-message {
    display: none;
    background: #191919;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 15px;
}

.error-message {
    display: none;
    background: #191919;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 15px;
}

/* ========================================
   Responsive: Tablet (max-width 992px)
   ======================================== */
@media (max-width: 992px) {
    .careers-why-join-grid {
        flex-direction: column;
        gap: 40px;
    }

    .careers-btn-about {
        align-self: center;
    }

    .careers-why-join-content .careers-section-subtitle,
    .careers-why-join-content .careers-section-title,
    .careers-why-join-content .careers-intro-text {
        text-align: center !important;
    }

    .careers-two-columns {
        flex-direction: column;
        gap: 40px;
    }

    .careers-checklist {
        columns: 1;
    }

    .careers-details-row {
        flex-wrap: wrap;
        gap: 20px;
    }

    .careers-detail-card {
        flex: 1 1 calc(50% - 10px);
        min-width: 0;
    }

    .careers-position-row {
        grid-template-columns: 1fr auto auto auto;
        gap: 15px;
        padding: 20px;
    }
}

/* ========================================
   Responsive: Mobile (max-width 768px)
   ======================================== */
@media (max-width: 768px) {
    .careers-hero {
        padding: 120px 0 70px;
    }

    .careers-hero-title {
        font-size: 2.5rem;
    }

    .careers-hero-subtitle {
        font-size: 1.2rem;
    }

    .careers-why-join,
    .careers-expect-offer {
        padding: 30px 0;
    }

    .careers-positions,
    .careers-working-details {
        padding: 30px 0;
    }

    .careers-cta {
        padding: 45px 0;
    }

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

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

    .careers-details-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .careers-detail-card {
        flex: none;
    }

    .careers-position-row {
        grid-template-columns: auto 1fr;
        gap: 8px 12px;
        text-align: left;
        position: relative;
    }

    .careers-position-info,
    .careers-position-action {
        grid-column: 1 / -1;
    }

    .careers-position-location,
    .careers-position-badge {
        justify-content: flex-start;
		        width: fit-content;
    }

    .careers-position-action {
        text-align: left;
    }

    /* Collapse button: top-right corner on mobile */
    .careers-position-row.active-position {
        padding-right: 60px;
    }

    .careers-position-row.active-position .careers-btn-collapse {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        margin-left: 0;
    }

    /* Inline form responsive */
    .inline-app-bar {
        padding: 12px 20px;
    }

    .inline-app-body {
        padding: 20px;
    }

    .form-row,
    .upload-grid {
        gap: 0 10px;
    }

    .form-row-4,
    .form-row-3 {
        grid-template-columns: repeat(2, 1fr);
    }

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

    /* Compact checkbox/radio groups on mobile */
    .checkbox-group, .radio-group {
        gap: 5px;
    }

    .checkbox-item, .radio-item {
        padding: 6px 8px;
        font-size: 13px;
    }

    /* Maintain horizontal grid for all checkboxes on mobile */
    .checkbox-group {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    /* Maintain 2-column grid for radio groups on mobile */
    .radio-group {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-control {
        padding: 10px 12px;
        font-size: 13px;
    }

    .form-section h3 {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .form-section {
        margin-bottom: 18px;
        padding-bottom: 12px;
    }

    /* Full width for textareas on mobile */
    .form-group:has(textarea) {
        grid-column: 1 / -1;
    }

    /* Street address full width */
    .form-group:has(input[name="street"]) {
        grid-column: 1 / -1;
    }
}

/* ========================================
   Responsive: Small Mobile (max-width 480px)
   ======================================== */
@media (max-width: 480px) {
    .careers-hero {
        padding: 100px 0 50px;
    }

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

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

    .careers-hero-lead {
        font-size: 0.95rem;
    }

    .careers-section-title {
        font-size: 1.6rem;
    }

    .careers-cta-title {
        font-size: 1.6rem;
    }

    .careers-benefit-card {
        padding: 20px 20px;
    }

    .careers-position-row {
        padding: 15px;
    }

    .careers-btn-apply {
        padding: 10px 20px;
        font-size: 11px;
    }

    .careers-column-title {
        font-size: 1.3rem;
    }

    /* Inline form small mobile */
    .inline-app-bar {
        padding: 10px 15px;
    }

    .inline-app-body {
        padding: 15px;
    }

    .inline-app-footer {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .form-row,
    .form-row-3,
    .form-row-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px 8px;
    }

    .form-section h3 {
        font-size: 15px;
    }

    .form-control {
        font-size: 13px;
        padding: 10px 12px;
    }

    .btn-submit {
        padding: 12px 30px;
        font-size: 14px;
        width: 100%;
    }

    .checkbox-group {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Keep GDPR vertical on mobile */
    .form-section:last-of-type .checkbox-group {
        grid-template-columns: 1fr;
    }

    /* File upload buttons - smaller on mobile */
    .file-upload-label {
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* ========================================
   Flatpickr Calendar Styles
   ======================================== */
.flatpickr-wrapper {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.flatpickr-calendar {
    z-index: 99999 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    border: none;
}

.flatpickr-day.selected {
    background: #7a6a54 !important;
    border-color: #8A7A68 !important;
}

.flatpickr-day.selected:hover {
    background: #8A7A68 !important;
    border-color: #7A6A58 !important;
}

.flatpickr-day:hover {
    background: #f0f0f0;
    border-color: #ddd;
}

.form-control.datepicker {
    cursor: pointer;
    background-color: #ffffff;
}

.form-control.datepicker[readonly] {
    background-color: #ffffff;
    opacity: 1;
}

@media (max-width: 768px) {
    .flatpickr-calendar {
        width: 307px !important;
        font-size: 14px;
        padding: 10px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        border-radius: 8px;
        background: #fff;
    }

    .flatpickr-day {
        height: 40px;
        line-height: 40px;
        border-radius: 20px;
        max-width: none;
        flex-basis: 14.28% !important;
    }

    .flatpickr-current-month {
        padding: 7px 0 0 0;
        font-size: 15px;
    }

    .flatpickr-weekdays {
        margin-top: 5px;
    }

    .flatpickr-months .flatpickr-month {
        height: 40px;
    }

    .flatpickr-months .flatpickr-prev-month,
    .flatpickr-months .flatpickr-next-month {
        padding: 5px;
        height: 40px;
    }
}
