/**
 * AG Jobs - Frontend Stylesheet
 * Bootstrap 5 Compatible
 */

/* ============================================
   CSS Custom Properties (Variables)
   ============================================ */
:root {
    --ag-jobs-primary: #0d6efd;
    --ag-jobs-secondary: #6c757d;
    --ag-jobs-success: #198754;
    --ag-jobs-warning: #ffc107;
    --ag-jobs-danger: #dc3545;
    --ag-jobs-info: #0dcaf0;
    --ag-jobs-light: #f8f9fa;
    --ag-jobs-dark: #212529;
    --ag-jobs-border-radius: 0.5rem;
    --ag-jobs-transition: all 0.3s ease;
    --ag-jobs-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --ag-jobs-shadow-hover: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    /* Sticky header offset - adjust this value based on your site's header height */
    --ag-jobs-sticky-header-height: 100px;
    /* z-index values - must be below sticky header (z-index: 222) */
    --ag-jobs-sidebar-z-index: 10;
    --ag-jobs-sticky-button-z-index: 200;
}

/* ============================================
   Job List Container
   ============================================ */
.ag-jobs-list {
    padding: 1rem 0;
}

.ag-jobs-list__header {
    margin-bottom: 2rem;
}

.ag-jobs-list__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ag-jobs-dark);
    margin-bottom: 0.5rem;
}

.ag-jobs-list__subtitle {
    color: var(--ag-jobs-secondary);
    font-size: 1.1rem;
}

.ag-jobs-list__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.ag-jobs-list__empty {
    text-align: center;
    padding: 3rem;
    background: var(--ag-jobs-light);
    border-radius: var(--ag-jobs-border-radius);
    color: var(--ag-jobs-secondary);
}

.ag-jobs-list__empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ============================================
   Job Cards
   ============================================ */
.ag-jobs-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: var(--ag-jobs-border-radius);
    box-shadow: var(--ag-jobs-shadow);
    transition: var(--ag-jobs-transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ag-jobs-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ag-jobs-shadow-hover);
    border-color: var(--ag-jobs-primary);
}

.ag-jobs-card__header {
    padding: 1.25rem 1.25rem 0;
}

.ag-jobs-card__badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.ag-jobs-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    border-radius: 50rem;
}

.ag-jobs-card__badge--fulltime {
    background: rgba(25, 135, 84, 0.1);
    color: var(--ag-jobs-success);
}

.ag-jobs-card__badge--parttime {
    background: rgba(13, 202, 240, 0.1);
    color: var(--ag-jobs-info);
}

.ag-jobs-card__badge--remote {
    background: rgba(111, 66, 193, 0.1);
    color: #6f42c1;
}

.ag-jobs-card__badge--new {
    background: var(--ag-jobs-warning);
    color: var(--ag-jobs-dark);
}

.ag-jobs-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ag-jobs-dark);
    margin: 0;
    line-height: 1.4;
}

.ag-jobs-card__title a {
    color: inherit;
    text-decoration: none;
    transition: var(--ag-jobs-transition);
}

.ag-jobs-card__title a:hover {
    color: var(--ag-jobs-primary);
}

.ag-jobs-card__body {
    padding: 1rem 1.25rem;
    flex: 1;
}

.ag-jobs-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.ag-jobs-card__meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ag-jobs-secondary);
    font-size: 0.875rem;
}

.ag-jobs-card__meta-item svg,
.ag-jobs-card__meta-item i {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.ag-jobs-card__description {
    color: var(--ag-jobs-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ag-jobs-card__footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.075);
    background: var(--ag-jobs-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ag-jobs-card__date {
    font-size: 0.8125rem;
    color: var(--ag-jobs-secondary);
}

.ag-jobs-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--ag-jobs-primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--ag-jobs-transition);
}

.ag-jobs-card__link:hover {
    color: #0a58ca;
    gap: 0.5rem;
}

.ag-jobs-card__link svg,
.ag-jobs-card__link i {
    transition: var(--ag-jobs-transition);
}

/* ============================================
   Job Detail
   ============================================ */
.ag-jobs-detail {
    padding: 2rem 0;
}

.ag-jobs-detail__header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ag-jobs-detail__breadcrumb {
    margin-bottom: 1rem;
}

.ag-jobs-detail__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ag-jobs-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.ag-jobs-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.ag-jobs-detail__meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ag-jobs-secondary);
}

.ag-jobs-detail__meta-item svg,
.ag-jobs-detail__meta-item i {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--ag-jobs-primary);
}

.ag-jobs-detail__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ag-jobs-detail__content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

@media (max-width: 991.98px) {
    .ag-jobs-detail__content {
        grid-template-columns: 1fr;
    }
}

.ag-jobs-detail__main {
    min-width: 0;
}

.ag-jobs-detail__section {
    margin-bottom: 2rem;
}

.ag-jobs-detail__section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ag-jobs-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--ag-jobs-primary);
    display: inline-block;
}

.ag-jobs-detail__text {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
}

.ag-jobs-detail__text ul,
.ag-jobs-detail__text ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.ag-jobs-detail__text li {
    margin-bottom: 0.5rem;
}

.ag-jobs-detail__sidebar {
    position: sticky;
    top: calc(var(--ag-jobs-sticky-header-height, 100px) + 1rem);
    height: fit-content;
    z-index: var(--ag-jobs-sidebar-z-index, 100);
}

.ag-jobs-detail__sidebar-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: var(--ag-jobs-border-radius);
    box-shadow: var(--ag-jobs-shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.ag-jobs-detail__sidebar-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--ag-jobs-dark);
}

.ag-jobs-detail__info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ag-jobs-detail__info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.075);
}

.ag-jobs-detail__info-item:last-child {
    border-bottom: none;
}

.ag-jobs-detail__info-label {
    color: var(--ag-jobs-secondary);
    font-size: 0.875rem;
}

.ag-jobs-detail__info-value {
    font-weight: 600;
    color: var(--ag-jobs-dark);
}

.ag-jobs-detail__apply-btn {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, var(--ag-jobs-primary), #0a58ca);
    border: none;
    border-radius: var(--ag-jobs-border-radius);
    cursor: pointer;
    transition: var(--ag-jobs-transition);
}

.ag-jobs-detail__apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
    color: #fff;
}

.ag-jobs-detail__share {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.ag-jobs-detail__share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ag-jobs-light);
    color: var(--ag-jobs-secondary);
    text-decoration: none;
    transition: var(--ag-jobs-transition);
}

.ag-jobs-detail__share-btn:hover {
    background: var(--ag-jobs-primary);
    color: #fff;
}

/* ============================================
   Application Form
   ============================================ */
.ag-jobs-application {
    padding: 2rem 0;
}

.ag-jobs-application__header {
    margin-bottom: 2rem;
    text-align: center;
}

.ag-jobs-application__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ag-jobs-dark);
    margin-bottom: 0.5rem;
}

.ag-jobs-application__subtitle {
    color: var(--ag-jobs-secondary);
    font-size: 1.1rem;
}

.ag-jobs-application__form-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: var(--ag-jobs-border-radius);
    box-shadow: var(--ag-jobs-shadow);
    padding: 2rem;
}

.ag-jobs-application__section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.075);
}

.ag-jobs-application__section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.ag-jobs-application__section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ag-jobs-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ag-jobs-application__section-title svg,
.ag-jobs-application__section-title i {
    color: var(--ag-jobs-primary);
}

.ag-jobs-application__row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 575.98px) {
    .ag-jobs-application__row {
        grid-template-columns: 1fr;
    }
}

.ag-jobs-application__field {
    margin-bottom: 1rem;
}

.ag-jobs-application__field--full {
    grid-column: 1 / -1;
}

.ag-jobs-application__label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--ag-jobs-dark);
}

.ag-jobs-application__label--required::after {
    content: " *";
    color: var(--ag-jobs-danger);
}

.ag-jobs-application__input,
.ag-jobs-application__textarea,
.ag-jobs-application__select {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ag-jobs-dark);
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: var(--ag-jobs-border-radius);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.ag-jobs-application__input:focus,
.ag-jobs-application__textarea:focus,
.ag-jobs-application__select:focus {
    color: var(--ag-jobs-dark);
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.ag-jobs-application__input::placeholder,
.ag-jobs-application__textarea::placeholder {
    color: #6c757d;
    opacity: 1;
}

.ag-jobs-application__input.is-invalid,
.ag-jobs-application__textarea.is-invalid,
.ag-jobs-application__select.is-invalid {
    border-color: var(--ag-jobs-danger);
}

.ag-jobs-application__input.is-invalid:focus,
.ag-jobs-application__textarea.is-invalid:focus,
.ag-jobs-application__select.is-invalid:focus {
    border-color: var(--ag-jobs-danger);
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.ag-jobs-application__textarea {
    min-height: 150px;
    resize: vertical;
}

.ag-jobs-application__error {
    display: none;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--ag-jobs-danger);
}

.ag-jobs-application__input.is-invalid + .ag-jobs-application__error,
.ag-jobs-application__textarea.is-invalid + .ag-jobs-application__error,
.ag-jobs-application__select.is-invalid + .ag-jobs-application__error,
.ag-jobs-application__file-upload.is-invalid + .ag-jobs-application__error {
    display: block;
}

.ag-jobs-application__help {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--ag-jobs-secondary);
}

/* File Upload */
.ag-jobs-application__file-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 1.5rem;
    border: 2px dashed #ced4da;
    border-radius: var(--ag-jobs-border-radius);
    background: var(--ag-jobs-light);
    cursor: pointer;
    transition: var(--ag-jobs-transition);
}

.ag-jobs-application__file-upload:hover {
    border-color: var(--ag-jobs-primary);
    background: rgba(13, 110, 253, 0.05);
}

.ag-jobs-application__file-upload.is-invalid {
    border-color: var(--ag-jobs-danger);
}

.ag-jobs-application__file-upload.is-dragover {
    border-color: var(--ag-jobs-primary);
    background: rgba(13, 110, 253, 0.1);
}

.ag-jobs-application__file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.ag-jobs-application__file-icon {
    font-size: 2.5rem;
    color: var(--ag-jobs-secondary);
    margin-bottom: 0.5rem;
}

.ag-jobs-application__file-text {
    color: var(--ag-jobs-secondary);
    text-align: center;
}

.ag-jobs-application__file-text strong {
    color: var(--ag-jobs-primary);
}

.ag-jobs-application__file-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    width: 100%;
}

.ag-jobs-application__file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.ag-jobs-application__file-item:last-child {
    margin-bottom: 0;
}

.ag-jobs-application__file-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--ag-jobs-dark);
}

.ag-jobs-application__file-size {
    font-size: 0.75rem;
    color: var(--ag-jobs-secondary);
}

.ag-jobs-application__file-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    background: none;
    border: none;
    color: var(--ag-jobs-secondary);
    cursor: pointer;
    transition: var(--ag-jobs-transition);
}

.ag-jobs-application__file-remove:hover {
    color: var(--ag-jobs-danger);
}

/* Checkbox and Privacy */
.ag-jobs-application__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.ag-jobs-application__checkbox-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
    cursor: pointer;
}

.ag-jobs-application__checkbox-label {
    font-size: 0.9375rem;
    color: var(--ag-jobs-dark);
    cursor: pointer;
}

.ag-jobs-application__checkbox-label a {
    color: var(--ag-jobs-primary);
}

/* Submit Button */
.ag-jobs-application__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--ag-jobs-success), #146c43);
    border: none;
    border-radius: var(--ag-jobs-border-radius);
    cursor: pointer;
    transition: var(--ag-jobs-transition);
}

.ag-jobs-application__submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.4);
}

.ag-jobs-application__submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.ag-jobs-application__submit-spinner {
    display: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: ag-jobs-spinner 0.75s linear infinite;
}

.ag-jobs-application__submit--loading .ag-jobs-application__submit-spinner {
    display: inline-block;
}

.ag-jobs-application__submit--loading .ag-jobs-application__submit-text {
    display: none;
}

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

/* Success/Error Messages */
.ag-jobs-application__message {
    padding: 1.5rem;
    border-radius: var(--ag-jobs-border-radius);
    text-align: center;
    margin-bottom: 1.5rem;
}

.ag-jobs-application__message--success {
    background: rgba(25, 135, 84, 0.1);
    border: 1px solid var(--ag-jobs-success);
    color: var(--ag-jobs-success);
}

.ag-jobs-application__message--error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--ag-jobs-danger);
    color: var(--ag-jobs-danger);
}

.ag-jobs-application__message-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.ag-jobs-application__message-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ag-jobs-application__message-text {
    font-size: 1rem;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 767.98px) {
    .ag-jobs-list__title {
        font-size: 1.5rem;
    }

    .ag-jobs-detail__title {
        font-size: 1.75rem;
    }

    .ag-jobs-detail__meta {
        gap: 1rem;
    }

    .ag-jobs-application__form-container {
        padding: 1.5rem;
    }

    /* Detail Hero Layout */
    .ag-jobs-hero {
        min-height: 220px !important;
    }

    .ag-jobs-hero .display-5 {
        font-size: 1.5rem;
        word-break: break-word;
        hyphens: auto;
    }

    .ag-jobs-hero .lead {
        font-size: 1rem;
    }

    /* Detail Header Card */
    .ag-jobs-detail .card-body .d-flex {
        flex-direction: column;
    }

    .ag-jobs-detail .card-body .flex-shrink-0 {
        margin-bottom: 0.75rem;
    }

    /* Detail Header Compact */
    .ag-jobs-layout-compact .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.75rem !important;
    }
}

@media (max-width: 575.98px) {
    .ag-jobs-list__grid {
        grid-template-columns: 1fr;
    }

    .ag-jobs-card__footer {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .ag-jobs-detail__sidebar {
        position: static;
    }

    /* Detail Hero Layout - Extra small */
    .ag-jobs-hero {
        min-height: 180px !important;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .ag-jobs-hero .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .ag-jobs-hero .display-5 {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    .ag-jobs-hero .lead {
        font-size: 0.9rem;
        margin-bottom: 0.75rem !important;
    }

    .ag-jobs-hero .mb-3 img {
        width: 60px !important;
        height: 60px !important;
    }

    .ag-jobs-hero .d-flex.flex-wrap.gap-2 {
        gap: 0.375rem !important;
    }

    .ag-jobs-hero .badge {
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
    }

    /* Detail Title */
    .ag-jobs-detail__title,
    .ag-jobs-detail h1 {
        font-size: 1.375rem;
        word-break: break-word;
        hyphens: auto;
        line-height: 1.3;
    }

    /* Company info in detail */
    .ag-jobs-detail .lead,
    .ag-jobs-detail .text-muted.mb-3 {
        font-size: 0.9rem;
    }

    /* Header card with logo */
    .ag-jobs-detail .card .d-flex.align-items-start {
        flex-direction: column;
    }

    .ag-jobs-detail .card .flex-shrink-0 img {
        width: 50px !important;
        height: 50px !important;
    }

    /* Badges in detail */
    .ag-jobs-detail .d-flex.flex-wrap.gap-2 {
        gap: 0.375rem !important;
    }

    .ag-jobs-detail .badge {
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
        white-space: normal;
    }

    /* Section titles */
    .ag-jobs-detail__section-title,
    .ag-jobs-detail .card-header h5,
    .ag-jobs-detail .card-header h4 {
        font-size: 1rem;
    }

    /* Sidebar card */
    .ag-jobs-detail .ag-jobs-sidebar-column .card {
        margin-top: 1rem;
    }

    .ag-jobs-detail .ag-jobs-sidebar-column .card-body {
        padding: 0.875rem;
    }

    /* Apply button spacing */
    .ag-jobs-detail .btn-primary,
    .ag-jobs-detail .btn-outline-primary {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* ============================================
   Job Detail Sidebar
   ============================================ */
.ag-jobs-sidebar {
    /* Base sidebar styles */
}

/* Parent column for sidebar */
.ag-jobs-sidebar-column {
    position: relative;
}

/* Sidebar sticky class - JavaScript handles positioning */
.ag-jobs-sidebar-sticky {
    z-index: var(--ag-jobs-sidebar-z-index, 10);
    transition: top 0.15s ease-out, box-shadow 0.2s ease-out;
    will-change: transform;
    box-sizing: border-box;
}

/* When sidebar is fixed by JavaScript - subtle shadow transition */
.ag-jobs-sidebar-sticky[style*="position: fixed"] {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (max-width: 991.98px) {
    .ag-jobs-sidebar-sticky {
        position: static !important;
        top: auto !important;
        width: auto !important;
    }
}

/* ============================================
   Sticky Apply Button (Mobile)
   ============================================ */
.ag-jobs-sticky-apply {
    z-index: var(--ag-jobs-sticky-button-z-index, 200);
}

/* ============================================
   Modal Styles
   ============================================ */
.ag-jobs-modal .modal-dialog {
    max-width: 1000px;
}

.ag-jobs-modal.modal-layout-fullscreen .modal-dialog {
    max-width: 100%;
    height: 100%;
    margin: 0;
}

.ag-jobs-modal.modal-layout-fullscreen .modal-content {
    height: 100%;
    border-radius: 0;
}

.ag-jobs-modal.modal-layout-compact .modal-dialog {
    max-width: 600px;
}

.ag-jobs-modal .modal-content {
    border: none;
    border-radius: var(--ag-jobs-border-radius);
    overflow: hidden;
}

/* Modal side navigation */
.ag-jobs-modal-side-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: var(--ag-jobs-transition);
}

.ag-jobs-modal-side-nav:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.ag-jobs-modal-side-nav.disabled,
.ag-jobs-modal-side-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Modal inner content */
.ag-jobs-modal-inner {
    position: relative;
}

.ag-jobs-modal-image {
    position: relative;
    overflow: hidden;
}

.ag-jobs-modal-image img {
    transition: transform 0.3s ease;
}

.ag-jobs-modal-image:hover img {
    transform: scale(1.02);
}

.ag-jobs-modal-content {
    max-height: 80vh;
    overflow-y: auto;
}

.ag-jobs-modal.modal-layout-compact .ag-jobs-modal-content {
    max-height: none;
}

/* Modal info section */
.ag-jobs-modal-info {
    background: var(--ag-jobs-light);
    border-radius: 0.5rem;
    padding: 1rem;
}

/* Modal teaser */
.ag-jobs-modal-teaser {
    background: rgba(13, 110, 253, 0.05);
    border-left: 3px solid var(--ag-jobs-primary);
    padding: 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

/* Modal requirements */
.ag-jobs-modal-requirements {
    background: var(--ag-jobs-light);
    border-radius: 0.5rem;
    padding: 1rem;
}

/* Modal actions */
.ag-jobs-modal-actions .btn {
    min-width: 150px;
}

/* Modal footer */
.ag-jobs-modal-footer {
    border-radius: 0 0 var(--ag-jobs-border-radius) var(--ag-jobs-border-radius);
}

/* Counter badge */
.ag-jobs-modal-counter-badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 50rem;
}

/* Responsive modal adjustments */
@media (max-width: 991.98px) {
    .ag-jobs-modal .modal-dialog {
        max-width: calc(100% - 2rem);
        margin: 1rem auto;
    }

    .ag-jobs-modal-side-nav {
        display: none !important;
    }

    .ag-jobs-modal-content {
        max-height: 70vh;
    }
}

@media (max-width: 767.98px) {
    .ag-jobs-modal .modal-dialog {
        max-width: 100%;
        margin: 0.5rem;
    }

    .ag-jobs-modal-image {
        max-height: 200px;
        overflow: hidden;
    }
}

/* ============================================
   Application Form - Kontaktformular Style
   ============================================ */

/* Loading Bar */
.application-form .loading-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #e9ecef;
    z-index: 10;
    width: 100%;
}

.application-form {
    position: relative;
}

/* Form Labels */
.application-form .form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

/* Visually Hidden (WCAG 2.2 AA - Screen Reader Only) */
.application-form .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Form Group */
.application-form .form-group {
    position: relative;
}

/* Placeholder Styling */
.application-form .form-control::placeholder,
.application-form .form-select::placeholder {
    color: #6c757d;
    opacity: 1;
}

/* Focus Visible (WCAG 2.4.7 Focus Visible) */
.application-form .form-control:focus-visible,
.application-form .form-select:focus-visible,
.application-form button:focus-visible,
.application-form a:focus-visible {
    outline: 2px solid var(--ag-jobs-primary, #0d6efd);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (forced-colors: active) {
    .application-form .form-control,
    .application-form .form-select {
        border: 2px solid CanvasText;
    }

    .application-form .form-control:focus,
    .application-form .form-select:focus {
        outline: 3px solid Highlight;
    }

    .application-form .btnContact {
        border: 2px solid ButtonText;
    }
}

/* Reduced Motion (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
    .application-form *,
    .application-form *::before,
    .application-form *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Form Controls */
.application-form .form-control,
.application-form .form-select {
    border: 1px solid #ced4da;
    border-radius: var(--ag-jobs-border-radius, 0.375rem);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.application-form .form-control:focus,
.application-form .form-select:focus {
    border-color: var(--ag-jobs-primary, #0d6efd);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    outline: 0;
}

/* Formularfelder full width row */
.application-form .formularfelder {
    width: 100%;
    display: contents;
}

.application-form .loading-bar .progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--ag-jobs-primary), #0dcaf0);
    animation: loading-progress 2s ease-in-out infinite;
}

@keyframes loading-progress {
    0% { width: 0; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Form Feedback */
.application-form .form-feedback {
    width: 100%;
    padding: 1rem;
    border-radius: var(--ag-jobs-border-radius);
    margin-bottom: 1rem;
}

/* Captcha Styling */
.application-form > .formularfelder > .col-12:has(.captcha-input) {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

.application-form .captcha-question {
    display: none;
}

.application-form .captcha-text {
    font-size: 1rem;
}

.application-form .captcha-text strong {
    font-weight: 700;
    color: var(--ag-jobs-dark);
    font-size: 1.1rem;
}

.application-form .captcha-input {
    max-width: 220px;
}

/* Captcha form-group specific */
.application-form .col-12:has(.captcha-input) .form-group {
    margin-bottom: 0;
}

/* Checkbox Wrapper (Kontaktformular Style) */
.application-form .checkbox-wrapper-29 {
    text-align: left;
}

.application-form .checkbox-wrapper-29 .checkbox,
.application-form .checkbox-wrapper-29 .question__label.checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    justify-content: flex-start;
}

.application-form .checkbox-wrapper-29 .checkbox__input {
    position: relative;
    width: 20px;
    height: 20px;
    min-width: 20px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    /* Ensure checkbox is visible and clickable */
    appearance: auto;
    -webkit-appearance: checkbox;
    -moz-appearance: checkbox;
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.application-form .checkbox-wrapper-29 .checkbox__label {
    display: none;
}

.application-form .wrapper.checkbox-wrapper-29 {
    text-align: left;
    width: 100%;
    margin: 0;
    padding: 0;
}

.application-form .wrapper.checkbox-wrapper-29 .form-check {
    display: block;
    padding: 0;
    margin: 0;
}

.application-form .wrapper.checkbox-wrapper-29 .question__label.checkbox {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    margin: 0;
    padding: 0;
    cursor: pointer;
    pointer-events: auto;
}

.application-form .wrapper.checkbox-wrapper-29 .question__label.checkbox > span.ms-2 {
    flex: 1 1 0%;
    min-width: 0;
    max-width: calc(100% - 30px);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.5;
}

.application-form .wrapper.checkbox-wrapper-29 .datenschutz-link {
    color: var(--ag-jobs-primary);
    text-decoration: underline;
    cursor: pointer;
}

.application-form .wrapper.checkbox-wrapper-29 .datenschutz-link:hover {
    color: #0a58ca;
    text-decoration: none;
}

.application-form .wrapper.checkbox-wrapper-29 .invalid-feedback {
    display: none;
    text-align: left;
    width: 100%;
    margin-top: 0.5rem;
    margin-left: 0;
    padding-left: 28px;
    font-size: 0.875rem;
    color: var(--ag-jobs-danger, #dc3545);
}

/* Validation feedback for privacy checkbox */
.application-form.was-validated .wrapper.checkbox-wrapper-29:has(.checkbox__input:invalid) .invalid-feedback,
.application-form .wrapper.checkbox-wrapper-29:has(.checkbox__input.is-invalid) .invalid-feedback {
    display: block !important;
}

.application-form.was-validated .wrapper.checkbox-wrapper-29 .checkbox__input:invalid,
.application-form .wrapper.checkbox-wrapper-29 .checkbox__input.is-invalid {
    outline: 2px solid var(--ag-jobs-danger);
    outline-offset: 2px;
}

/* Privacy checkbox simplified structure */
.application-form .wrapper.checkbox-wrapper-29 .privacy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.application-form .wrapper.checkbox-wrapper-29 .privacy-checkbox .checkbox__input,
.application-form .wrapper.checkbox-wrapper-29 .privacy-checkbox input[type="checkbox"] {
    display: inline-block !important;
    visibility: visible !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    margin-top: 3px;
    cursor: pointer !important;
    flex-shrink: 0;
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    opacity: 1 !important;
    position: static !important;
    pointer-events: auto !important;
    clip: auto !important;
    overflow: visible !important;
}

.application-form .wrapper.checkbox-wrapper-29 .privacy-checkbox label {
    cursor: pointer;
    line-height: 1.5;
    flex: 1;
}

.application-form .wrapper.checkbox-wrapper-29 .privacy-checkbox .datenschutz-link {
    color: var(--ag-jobs-primary);
    text-decoration: underline;
}

.application-form .wrapper.checkbox-wrapper-29 .privacy-checkbox .datenschutz-link:hover {
    text-decoration: none;
}

.application-form .wrapper.checkbox-wrapper-29 > .invalid-feedback {
    display: none;
    padding-left: 28px;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--ag-jobs-danger, #dc3545);
}

/* Datenschutz Toggle */
.application-form .collapse-toggle {
    cursor: pointer;
    padding: 0.5rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
}

.application-form .collapse-toggle .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #e9ecef;
    transition: background-color 0.2s ease;
}

.application-form .collapse-toggle:hover .icon {
    background-color: #ced4da;
}

.application-form .collapse-toggle a,
.application-form .collapse-toggle .toggle-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.application-form .collapse-toggle a:hover,
.application-form .collapse-toggle .toggle-link:hover {
    text-decoration: underline;
}

.application-form .datenschutz-text {
    background: transparent;
    padding: 1rem 0;
    margin: 1rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
    border-left: 3px solid var(--ag-jobs-primary, #0d6efd);
    padding-left: 1rem;
}

.application-form .datenschutz-text p:last-child {
    margin-bottom: 0;
}

/* Section Titles */
.application-form .section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ag-jobs-dark);
}

/* ============================================
   Fieldset Styling (Semantic Form Grouping)
   ============================================ */
.application-form .form-fieldset {
    border: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
    min-width: 0;
}

.application-form .form-fieldset:last-of-type {
    margin-bottom: 1.5rem;
}

.application-form .fieldset-legend {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ag-jobs-dark);
    padding: 0 0.5rem 0.5rem 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--ag-jobs-primary, #0d6efd);
    display: block;
    width: 100%;
    float: none;
}

.application-form .form-fieldset > .row > .form-group {
    margin-bottom: 1.5rem;
}

/* Standard form-group spacing */
.application-form .form-group {
    margin-bottom: 1.5rem;
}

.application-form .form-group .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Form text hints */
.application-form .form-text {
    font-size: 0.8125rem;
    color: var(--ag-jobs-secondary, #6c757d);
    margin-top: 0.375rem;
}

/* Fieldset mit Border-Variante (optional per Klasse aktivierbar) */
.application-form .form-fieldset.fieldset-bordered {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--ag-jobs-border-radius, 0.375rem);
    padding: 1.25rem;
    background: rgba(248, 249, 250, 0.5);
}

.application-form .form-fieldset.fieldset-bordered .fieldset-legend {
    margin: -1.25rem -1.25rem 1rem -1.25rem;
    padding: 0.75rem 1.25rem;
    background: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--ag-jobs-border-radius, 0.375rem) var(--ag-jobs-border-radius, 0.375rem) 0 0;
}

/* Responsive Fieldset */
@media (max-width: 575.98px) {
    .application-form .fieldset-legend {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .application-form .form-fieldset {
        margin-bottom: 2rem;
    }

    .application-form .file-upload-group {
        padding: 1rem;
    }
}

/* Job Info Sidebar */
.job-info-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: var(--ag-jobs-border-radius);
    box-shadow: var(--ag-jobs-shadow);
    padding: 1.25rem;
}

/* Button Wrapper */
.application-form .btn-wrapper {
    display: flex;
    width: 100%;
}

.application-form .btn-wrapper.btn-align-left {
    justify-content: flex-start;
}

.application-form .btn-wrapper.btn-align-center {
    justify-content: center;
}

.application-form .btn-wrapper.btn-align-right {
    justify-content: flex-end;
}

/* Submit Button */
.application-form .btnContact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--ag-jobs-primary);
    border-color: var(--ag-jobs-primary);
    color: #fff;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--ag-jobs-border-radius);
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.application-form .btnContact:hover:not(:disabled) {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-1px);
}

.application-form .btnContact:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.5);
}

.application-form .btnContact:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.application-form .btn-loading {
    display: none;
}

/* Responsive Checkbox */
@media (max-width: 575.98px) {
    .application-form .wrapper.checkbox-wrapper-29 .question__label.checkbox {
        display: flex;
        flex-wrap: nowrap;
        align-items: flex-start;
        width: 100%;
    }

    .application-form .wrapper.checkbox-wrapper-29 .checkbox__input {
        flex-shrink: 0;
        margin-top: 2px;
    }

    .application-form .wrapper.checkbox-wrapper-29 .question__label.checkbox > span.ms-2 {
        flex: 1 1 0%;
        min-width: 0;
        max-width: calc(100% - 28px);
        font-size: 0.875rem;
        line-height: 1.4;
    }

    .application-form .wrapper.checkbox-wrapper-29 .invalid-feedback {
        margin-left: 28px;
    }

    .application-form .btnContact {
        width: 100%;
    }
}

/* ============================================
   Layout-spezifische Styles
   ============================================ */

/* Minimal Layout - zentriert */
.application-form.layout-minimal {
    max-width: 600px;
    margin: 0 auto;
}

/* Compact Layout - volle Breite aber schmaler */
.application-form.layout-compact .formularfelder {
    max-width: 500px;
}

/* ============================================
   Label-Position Varianten
   ============================================ */

/* Floating Labels */
.application-form.label-floating .form-group {
    position: relative;
}

.application-form.label-floating .form-label {
    position: absolute;
    top: 0.75rem;
    left: 1rem;
    padding: 0 0.25rem;
    background: transparent;
    transition: all 0.2s ease;
    pointer-events: none;
    color: #6c757d;
    z-index: 1;
}

.application-form.label-floating .form-control:focus ~ .form-label,
.application-form.label-floating .form-control:not(:placeholder-shown) ~ .form-label {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 0.75rem;
    background: #fff;
    color: var(--ag-jobs-primary);
}

/* Placeholder-only (no labels) */
.application-form.label-placeholder .form-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   Input Style Varianten (Border-Radius)
   ============================================ */

/* Square (Standard - 0px) */
.application-form.input-square .form-control,
.application-form.input-square .form-select,
.application-form.input-square .btn,
.application-form.input-square input[type="submit"] {
    border-radius: 0;
}

/* Rounded Small (4px) */
.application-form.input-rounded-sm .form-control,
.application-form.input-rounded-sm .form-select {
    border-radius: 0.25rem;
}

.application-form.input-rounded-sm .btn,
.application-form.input-rounded-sm input[type="submit"] {
    border-radius: 0.25rem;
}

/* Rounded (8px) */
.application-form.input-rounded .form-control,
.application-form.input-rounded .form-select {
    border-radius: 0.5rem;
}

.application-form.input-rounded .btn,
.application-form.input-rounded input[type="submit"] {
    border-radius: 0.5rem;
}

/* Rounded Large (16px) */
.application-form.input-rounded-lg .form-control,
.application-form.input-rounded-lg .form-select {
    border-radius: 1rem;
}

.application-form.input-rounded-lg .btn,
.application-form.input-rounded-lg input[type="submit"] {
    border-radius: 1rem;
}

/* Rounded Pill (voll abgerundet) */
.application-form.input-rounded-pill .form-control,
.application-form.input-rounded-pill .form-select {
    border-radius: 50rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.application-form.input-rounded-pill .btn,
.application-form.input-rounded-pill input[type="submit"] {
    border-radius: 50rem;
}

.application-form.input-rounded-pill textarea.form-control {
    border-radius: 1rem;
}

/* ============================================
   Input Size Varianten
   ============================================ */

/* Small */
.application-form.size-sm .form-control,
.application-form.size-sm .form-select {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.application-form.size-sm .btn,
.application-form.size-sm input[type="submit"] {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
}

/* Large */
.application-form.size-lg .form-control,
.application-form.size-lg .form-select {
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
}

.application-form.size-lg .btn,
.application-form.size-lg input[type="submit"] {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* ============================================
   Checkbox Style Varianten
   ============================================ */

/* Bootstrap Standard Checkbox */
.application-form.checkbox-bootstrap .checkbox-wrapper-29 .checkbox__input {
    appearance: auto;
    -webkit-appearance: checkbox;
    width: 1.25em;
    height: 1.25em;
    border: 1px solid #ced4da;
    background-color: #fff;
    cursor: pointer;
}

.application-form.checkbox-bootstrap .checkbox-wrapper-29 .checkbox__label {
    display: none;
}

/* Square Check Style */
.application-form.checkbox-square-check .checkbox-wrapper-29 .checkbox__input {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #ced4da;
    border-radius: 0;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.application-form.checkbox-square-check .checkbox-wrapper-29 .checkbox__input:checked {
    background-color: var(--ag-jobs-primary);
    border-color: var(--ag-jobs-primary);
}

.application-form.checkbox-square-check .checkbox-wrapper-29 .checkbox__input:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.application-form.checkbox-square-check .checkbox-wrapper-29 .checkbox__label {
    display: none;
}

/* Round Dot Style */
.application-form.checkbox-round-dot .checkbox-wrapper-29 .checkbox__input {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #ced4da;
    border-radius: 50%;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.application-form.checkbox-round-dot .checkbox-wrapper-29 .checkbox__input:checked {
    border-color: var(--ag-jobs-primary);
}

.application-form.checkbox-round-dot .checkbox-wrapper-29 .checkbox__input:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: var(--ag-jobs-primary);
    border-radius: 50%;
}

.application-form.checkbox-round-dot .checkbox-wrapper-29 .checkbox__label {
    display: none;
}

/* Modern Animated Style */
.application-form.checkbox-modern .checkbox-wrapper-29 .checkbox__input {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid #ced4da;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.application-form.checkbox-modern .checkbox-wrapper-29 .checkbox__input:hover {
    border-color: var(--ag-jobs-primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.application-form.checkbox-modern .checkbox-wrapper-29 .checkbox__input:checked {
    background-color: var(--ag-jobs-primary);
    border-color: var(--ag-jobs-primary);
    animation: checkbox-pop 0.3s ease;
}

.application-form.checkbox-modern .checkbox-wrapper-29 .checkbox__input:checked::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
    animation: checkmark-draw 0.2s ease 0.1s both;
}

.application-form.checkbox-modern .checkbox-wrapper-29 .checkbox__label {
    display: none;
}

@keyframes checkbox-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes checkmark-draw {
    0% { opacity: 0; transform: rotate(45deg) scale(0); }
    100% { opacity: 1; transform: rotate(45deg) scale(1); }
}

/* Toggle Switch Style */
.application-form.checkbox-switch .checkbox-wrapper-29 {
    display: flex;
    align-items: flex-start;
}

.application-form.checkbox-switch .checkbox-wrapper-29 .checkbox {
    flex-direction: row;
    align-items: center;
}

.application-form.checkbox-switch .checkbox-wrapper-29 .checkbox__input {
    appearance: none;
    -webkit-appearance: none;
    width: 50px;
    height: 26px;
    border: none;
    border-radius: 13px;
    background-color: #ced4da;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.application-form.checkbox-switch .checkbox-wrapper-29 .checkbox__input::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.application-form.checkbox-switch .checkbox-wrapper-29 .checkbox__input:checked {
    background-color: var(--ag-jobs-primary);
}

.application-form.checkbox-switch .checkbox-wrapper-29 .checkbox__input:checked::before {
    transform: translateX(24px);
}

.application-form.checkbox-switch .checkbox-wrapper-29 .checkbox__label {
    display: none;
}

/* Pseudo Checkbox Style (Haken-Icon) */
.application-form.checkbox-pseudo .checkbox-wrapper-29 .question__label::before {
    display: none !important;
    content: '' !important;
}

/* Pseudo checkbox hides native input */
.application-form.checkbox-pseudo .checkbox-wrapper-29 .checkbox__input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    pointer-events: none;
}

.application-form.checkbox-pseudo .checkbox-wrapper-29 .checkbox,
.application-form.checkbox-pseudo .checkbox-wrapper-29 .question__label.checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 0;
}

.application-form.checkbox-pseudo .checkbox-wrapper-29 .checkbox__label {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid #ced4da;
    border-radius: 4px;
    background-color: #fff;
    transition: all 0.2s ease;
    cursor: pointer;
    order: -1;
    margin-right: 0.5rem;
    pointer-events: auto;
    z-index: 1;
}

.application-form.checkbox-pseudo .checkbox-wrapper-29 .checkbox__label::before {
    content: '' !important;
    display: none !important;
}

.application-form.checkbox-pseudo .checkbox-wrapper-29 .checkbox__label::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', 'FontAwesome';
    font-weight: 900;
    font-size: 14px;
    color: transparent;
    transition: color 0.2s ease;
}

.application-form.checkbox-pseudo .checkbox-wrapper-29 .checkbox:hover .checkbox__label,
.application-form.checkbox-pseudo .checkbox-wrapper-29 .question__label.checkbox:hover .checkbox__label {
    border-color: var(--ag-jobs-primary);
}

.application-form.checkbox-pseudo .checkbox-wrapper-29 .checkbox:has(.checkbox__input:checked) .checkbox__label,
.application-form.checkbox-pseudo .checkbox-wrapper-29 .question__label.checkbox:has(.checkbox__input:checked) .checkbox__label {
    background-color: var(--ag-jobs-primary);
    border-color: var(--ag-jobs-primary);
}

.application-form.checkbox-pseudo .checkbox-wrapper-29 .checkbox:has(.checkbox__input:checked) .checkbox__label::after,
.application-form.checkbox-pseudo .checkbox-wrapper-29 .question__label.checkbox:has(.checkbox__input:checked) .checkbox__label::after {
    color: #fff;
}

.application-form.checkbox-pseudo .checkbox-wrapper-29 .checkbox__input:checked ~ .checkbox__label {
    background-color: var(--ag-jobs-primary);
    border-color: var(--ag-jobs-primary);
}

.application-form.checkbox-pseudo .checkbox-wrapper-29 .checkbox__input:checked ~ .checkbox__label::after {
    color: #fff;
}

/* Pseudo Round Checkbox Style */
.application-form.checkbox-pseudo-round .checkbox-wrapper-29 .question__label::before {
    display: none !important;
    content: '' !important;
}

/* Pseudo-round checkbox hides native input */
.application-form.checkbox-pseudo-round .checkbox-wrapper-29 .checkbox__input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    pointer-events: none;
}

.application-form.checkbox-pseudo-round .checkbox-wrapper-29 .checkbox,
.application-form.checkbox-pseudo-round .checkbox-wrapper-29 .question__label.checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 0;
}

.application-form.checkbox-pseudo-round .checkbox-wrapper-29 .checkbox__label {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    min-width: 26px;
    border: 2px solid #ced4da;
    border-radius: 50%;
    background-color: #fff;
    transition: all 0.2s ease;
    cursor: pointer;
    order: -1;
    margin-right: 0.5rem;
    pointer-events: auto;
    z-index: 1;
}

.application-form.checkbox-pseudo-round .checkbox-wrapper-29 .checkbox__label::before {
    content: '' !important;
    display: none !important;
}

.application-form.checkbox-pseudo-round .checkbox-wrapper-29 .checkbox__label::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', 'FontAwesome';
    font-weight: 900;
    font-size: 13px;
    color: transparent;
    transition: color 0.2s ease, transform 0.2s ease;
}

.application-form.checkbox-pseudo-round .checkbox-wrapper-29 .checkbox:has(.checkbox__input:checked) .checkbox__label,
.application-form.checkbox-pseudo-round .checkbox-wrapper-29 .question__label.checkbox:has(.checkbox__input:checked) .checkbox__label {
    background-color: var(--ag-jobs-primary);
    border-color: var(--ag-jobs-primary);
}

.application-form.checkbox-pseudo-round .checkbox-wrapper-29 .checkbox:has(.checkbox__input:checked) .checkbox__label::after,
.application-form.checkbox-pseudo-round .checkbox-wrapper-29 .question__label.checkbox:has(.checkbox__input:checked) .checkbox__label::after {
    color: #fff;
    transform: scale(1.1);
}

.application-form.checkbox-pseudo-round .checkbox-wrapper-29 .checkbox__input:checked ~ .checkbox__label {
    background-color: var(--ag-jobs-primary);
    border-color: var(--ag-jobs-primary);
}

.application-form.checkbox-pseudo-round .checkbox-wrapper-29 .checkbox__input:checked ~ .checkbox__label::after {
    color: #fff;
    transform: scale(1.1);
}

/* ============================================
   Button Style Varianten
   ============================================ */

/* Primary (Blau) - Standard */
.application-form.btn-style-primary .btnContact {
    background-color: var(--ag-jobs-primary);
    border-color: var(--ag-jobs-primary);
    color: #fff;
}

.application-form.btn-style-primary .btnContact:hover:not(:disabled) {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.application-form.btn-style-primary .btnContact:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.5);
}

/* Success (Gruen) */
.application-form.btn-style-success .btnContact {
    background-color: #198754;
    border-color: #198754;
    color: #fff;
}

.application-form.btn-style-success .btnContact:hover:not(:disabled) {
    background-color: #157347;
    border-color: #146c43;
}

.application-form.btn-style-success .btnContact:focus {
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.5);
}

/* Dark (Dunkel) */
.application-form.btn-style-dark .btnContact {
    background-color: #212529;
    border-color: #212529;
    color: #fff;
}

.application-form.btn-style-dark .btnContact:hover:not(:disabled) {
    background-color: #1c1f23;
    border-color: #1a1e21;
}

.application-form.btn-style-dark .btnContact:focus {
    box-shadow: 0 0 0 0.25rem rgba(33, 37, 41, 0.5);
}

/* Outline */
.application-form.btn-style-outline .btnContact {
    background-color: transparent;
    border: 2px solid #212529;
    color: #212529;
}

.application-form.btn-style-outline .btnContact:hover:not(:disabled) {
    background-color: #212529;
    border-color: #212529;
    color: #fff;
}

.application-form.btn-style-outline .btnContact:focus {
    box-shadow: 0 0 0 0.25rem rgba(33, 37, 41, 0.5);
}

/* Var Green (Burghardt Gruen) */
.application-form.btn-style-var-green .btnContact {
    background-color: var(--green, #28a745);
    border-color: var(--green, #28a745);
    color: #fff;
}

.application-form.btn-style-var-green .btnContact:hover:not(:disabled) {
    background-color: var(--green-dark, #218838);
    border-color: var(--green-dark, #218838);
    filter: brightness(0.9);
}

.application-form.btn-style-var-green .btnContact:focus {
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.5);
}

/* ============================================
   Button Icon Styles
   ============================================ */

.application-form .btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.application-form .btn-icon i,
.application-form .btn-icon .fa,
.application-form .btn-icon .fas,
.application-form .btn-icon .far,
.application-form .btn-icon .fab {
    font-size: 1em;
}

/* Icon nur (kein Text) */
.application-form .btn-icon-only {
    padding: 0.75rem 1rem;
}

.application-form .btn-icon-only i,
.application-form .btn-icon-only .fa,
.application-form .btn-icon-only .fas,
.application-form .btn-icon-only .far,
.application-form .btn-icon-only .fab {
    font-size: 1.25em;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .ag-jobs-card:hover {
        transform: none;
        box-shadow: none;
    }

    .ag-jobs-detail__sidebar {
        display: none;
    }

    .ag-jobs-application__form-container {
        box-shadow: none;
        border: 1px solid #000;
    }

    .ag-jobs-modal {
        display: none !important;
    }
}

/* ============================================
   Round Privacy Checkbox (Pseudo-Round Style)
   ============================================ */
.application-form .checkbox-wrapper-round {
    width: 100%;
}

.application-form .privacy-checkbox-round {
    display: block;
}

.application-form .privacy-checkbox-round .privacy-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    position: relative;
    line-height: 1.5;
}

/* Hide native checkbox but keep it accessible */
.application-form .privacy-checkbox-round .privacy-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Custom round checkmark */
.application-form .privacy-checkbox-round .privacy-checkmark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    border: 2px solid #ced4da;
    border-radius: 50%;
    background-color: #fff;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 0;
}

/* Checkmark icon (hidden by default) */
.application-form .privacy-checkbox-round .privacy-checkmark::after {
    content: '\2713';
    font-size: 14px;
    font-weight: bold;
    color: transparent;
    transition: color 0.2s ease;
}

/* Hover state */
.application-form .privacy-checkbox-round .privacy-label:hover .privacy-checkmark {
    border-color: var(--ag-jobs-primary, #0d6efd);
}

/* Checked state */
.application-form .privacy-checkbox-round .privacy-input:checked + .privacy-checkmark {
    background-color: var(--ag-jobs-primary, #0d6efd);
    border-color: var(--ag-jobs-primary, #0d6efd);
}

.application-form .privacy-checkbox-round .privacy-input:checked + .privacy-checkmark::after {
    color: #fff;
}

/* Focus state for accessibility */
.application-form .privacy-checkbox-round .privacy-input:focus-visible + .privacy-checkmark {
    outline: 2px solid var(--ag-jobs-primary, #0d6efd);
    outline-offset: 2px;
}

/* Invalid state */
.application-form.was-validated .privacy-checkbox-round .privacy-input:invalid + .privacy-checkmark,
.application-form .privacy-checkbox-round .privacy-input.is-invalid + .privacy-checkmark {
    border-color: var(--ag-jobs-danger, #dc3545);
}

/* Privacy text */
.application-form .privacy-checkbox-round .privacy-text {
    flex: 1;
    padding-top: 2px;
}

.application-form .privacy-checkbox-round .privacy-text .datenschutz-link {
    color: var(--ag-jobs-primary, #0d6efd);
    text-decoration: underline;
}

.application-form .privacy-checkbox-round .privacy-text .datenschutz-link:hover {
    text-decoration: none;
}

/* Invalid feedback for round checkbox */
.application-form .checkbox-wrapper-round > .invalid-feedback {
    display: none;
    padding-left: 34px;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--ag-jobs-danger, #dc3545);
}

.application-form.was-validated .checkbox-wrapper-round:has(.privacy-input:invalid) > .invalid-feedback,
.application-form .checkbox-wrapper-round:has(.privacy-input.is-invalid) > .invalid-feedback {
    display: block;
}

/* ============================================
   Checkbox Style Variants for Privacy Checkbox
   ============================================ */

/* Bootstrap Standard - Square checkbox */
.application-form.checkbox-bootstrap .privacy-checkbox-round .privacy-checkmark {
    border-radius: 0.25rem;
}

/* Square Check Style */
.application-form.checkbox-square-check .privacy-checkbox-round .privacy-checkmark {
    border-radius: 0;
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
}

.application-form.checkbox-square-check .privacy-checkbox-round .privacy-checkmark::after {
    content: '';
    display: block;
    width: 6px;
    height: 12px;
    border: solid transparent;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.application-form.checkbox-square-check .privacy-checkbox-round .privacy-input:checked + .privacy-checkmark::after {
    border-color: #fff;
}

/* Round Dot Style */
.application-form.checkbox-round-dot .privacy-checkbox-round .privacy-checkmark::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: transparent;
    border: none;
}

.application-form.checkbox-round-dot .privacy-checkbox-round .privacy-input:checked + .privacy-checkmark {
    background-color: #fff;
    border-color: var(--ag-jobs-primary, #0d6efd);
}

.application-form.checkbox-round-dot .privacy-checkbox-round .privacy-input:checked + .privacy-checkmark::after {
    background-color: var(--ag-jobs-primary, #0d6efd);
}

/* Modern Animated Style */
.application-form.checkbox-modern .privacy-checkbox-round .privacy-checkmark {
    border-radius: 6px;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.application-form.checkbox-modern .privacy-checkbox-round .privacy-label:hover .privacy-checkmark {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.application-form.checkbox-modern .privacy-checkbox-round .privacy-checkmark::after {
    content: '';
    display: block;
    width: 6px;
    height: 11px;
    border: solid transparent;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
    margin-top: -2px;
    transition: all 0.2s ease;
}

.application-form.checkbox-modern .privacy-checkbox-round .privacy-input:checked + .privacy-checkmark {
    animation: checkbox-pop 0.3s ease;
}

.application-form.checkbox-modern .privacy-checkbox-round .privacy-input:checked + .privacy-checkmark::after {
    border-color: #fff;
}

/* Toggle Switch Style */
.application-form.checkbox-switch .privacy-checkbox-round .privacy-checkmark {
    width: 50px;
    height: 26px;
    min-width: 50px;
    min-height: 26px;
    border-radius: 13px;
    border: none;
    background-color: #ced4da;
    position: relative;
}

.application-form.checkbox-switch .privacy-checkbox-round .privacy-checkmark::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.application-form.checkbox-switch .privacy-checkbox-round .privacy-checkmark::after {
    display: none;
}

.application-form.checkbox-switch .privacy-checkbox-round .privacy-input:checked + .privacy-checkmark {
    background-color: var(--ag-jobs-primary, #0d6efd);
}

.application-form.checkbox-switch .privacy-checkbox-round .privacy-input:checked + .privacy-checkmark::before {
    transform: translateX(24px);
}

/* Pseudo Square Style (with FontAwesome icon) */
.application-form.checkbox-pseudo .privacy-checkbox-round .privacy-checkmark {
    border-radius: 4px;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
}

.application-form.checkbox-pseudo .privacy-checkbox-round .privacy-checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', 'FontAwesome';
    font-weight: 900;
    font-size: 14px;
    color: transparent;
    border: none;
    transform: none;
    width: auto;
    height: auto;
}

.application-form.checkbox-pseudo .privacy-checkbox-round .privacy-input:checked + .privacy-checkmark::after {
    color: #fff;
}

/* Pseudo Round Style (default - already styled) */
.application-form.checkbox-pseudo-round .privacy-checkbox-round .privacy-checkmark {
    /* Uses default round style */
}

.application-form.checkbox-pseudo-round .privacy-checkbox-round .privacy-checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', 'FontAwesome';
    font-weight: 900;
    font-size: 13px;
    color: transparent;
    border: none;
    transform: none;
    width: auto;
    height: auto;
    transition: color 0.2s ease, transform 0.2s ease;
}

.application-form.checkbox-pseudo-round .privacy-checkbox-round .privacy-input:checked + .privacy-checkmark::after {
    color: #fff;
    transform: scale(1.1);
}

/* ============================================
   Custom File Input - Button with Filename
   ============================================ */

/* File Upload Group Styling */
.application-form .file-upload-group {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: var(--ag-jobs-border-radius, 0.375rem);
    padding: 1rem 1.25rem 1.25rem 1.25rem;
    margin-bottom: 0;
    height: 100%;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.application-form .file-upload-group:hover {
    border-color: #ced4da;
}

.application-form .file-upload-group:focus-within {
    border-color: var(--ag-jobs-primary, #0d6efd);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* File Upload Label */
.application-form .file-upload-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ag-jobs-dark, #212529);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

/* Optional: Icon vor dem Label */
.application-form .file-upload-label::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M14 4.5V14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h5.5L14 4.5zm-3 0A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4.5h-2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
}

/* File Upload Hint */
.application-form .file-upload-group > .form-text {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--ag-jobs-secondary, #6c757d);
}

/* File Upload Group spacing in row context */
.application-form .form-fieldset > .row > [class*="col-"]:has(.file-upload-group) {
    margin-bottom: 0;
}

/* Adjust outer gutters for file upload columns on desktop */
@media (min-width: 768px) {
    .application-form .form-fieldset > .row > .col-md-6:has(.file-upload-group):nth-child(odd) {
        padding-left: 10px;
    }
    .application-form .form-fieldset > .row > .col-md-6:has(.file-upload-group):nth-child(even) {
        padding-right: 10px;
    }
}

.application-form .file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 3rem;
}

/* Hide native file input but keep it accessible */
.application-form .file-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Custom button */
.application-form .file-input-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    background-color: var(--ag-jobs-primary, #0d6efd);
    border: 1px solid var(--ag-jobs-primary, #0d6efd);
    border-radius: var(--ag-jobs-border-radius, 0.375rem);
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, transform 0.15s ease-in-out;
    white-space: nowrap;
}

.application-form .file-input-button:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.application-form .file-input-button:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.5);
}

.application-form .file-input-button svg {
    flex-shrink: 0;
}

/* Focus state on hidden input - show on button */
.application-form .file-input-hidden:focus + .file-input-button {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.5);
}

/* Filename display */
.application-form .file-input-filename {
    font-size: 0.875rem;
    color: var(--ag-jobs-secondary, #6c757d);
    word-break: break-all;
    flex: 1;
    min-width: 0;
}

/* When file is selected, show green checkmark style */
.application-form .file-input-filename.has-file {
    color: var(--ag-jobs-success, #198754);
    font-weight: 500;
}

/* Multiple files display */
.application-form .file-input-filename.has-multiple-files {
    color: var(--ag-jobs-success, #198754);
    font-weight: 500;
}

/* Responsive: stack on small screens */
@media (max-width: 575.98px) {
    .application-form .file-input-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .application-form .file-input-button {
        width: 100%;
        justify-content: center;
    }

    .application-form .file-input-filename {
        width: 100%;
        text-align: left;
    }
}

/* Button Style Variants for File Input */
.application-form.btn-style-success .file-input-button {
    background-color: #198754;
    border-color: #198754;
}

.application-form.btn-style-success .file-input-button:hover {
    background-color: #157347;
    border-color: #146c43;
}

.application-form.btn-style-dark .file-input-button {
    background-color: #212529;
    border-color: #212529;
}

.application-form.btn-style-dark .file-input-button:hover {
    background-color: #1c1f23;
    border-color: #1a1e21;
}

.application-form.btn-style-outline .file-input-button {
    background-color: transparent;
    border: 2px solid #212529;
    color: #212529;
}

.application-form.btn-style-outline .file-input-button:hover {
    background-color: #212529;
    color: #fff;
}

.application-form.btn-style-var-green .file-input-button {
    background-color: var(--green, #28a745);
    border-color: var(--green, #28a745);
}

.application-form.btn-style-var-green .file-input-button:hover {
    background-color: var(--green-dark, #218838);
    border-color: var(--green-dark, #218838);
}

/* Input Style Variants for File Input Button */
.application-form.input-square .file-input-button {
    border-radius: 0;
}

.application-form.input-rounded-sm .file-input-button {
    border-radius: 0.25rem;
}

.application-form.input-rounded .file-input-button {
    border-radius: 0.5rem;
}

.application-form.input-rounded-lg .file-input-button {
    border-radius: 1rem;
}

.application-form.input-rounded-pill .file-input-button {
    border-radius: 50rem;
}

/* ============================================
   Textarea Alignment Fix
   ============================================ */

/* Textarea specific box sizing and alignment */
.application-form textarea.form-control {
    width: 100%;
    box-sizing: border-box;
    display: block;
    margin: 0;
}

/* Ensure full-width textarea columns have proper Bootstrap gutter padding */
.application-form .row.g-3 > .col-12.form-group:has(> textarea) {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* ============================================
   Header Layout Variants
   ============================================ */

.form-header.header-layout-default {
    /* Standard layout - no changes needed */
}

.form-header.header-layout-compact h1 {
    font-weight: 600;
}

.form-header.header-layout-highlight {
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 0;
}

.form-header.header-layout-highlight > div {
    border-left: 4px solid var(--ag-jobs-primary, #0d6efd);
}

.form-header.header-layout-minimal {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
}

/* ============================================
   Sidebar Layout Variants
   ============================================ */

.job-info-sidebar .job-info-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: var(--ag-jobs-border-radius, 0.375rem);
    padding: 1.25rem;
}

.job-info-sidebar .job-info-card.bg-primary {
    border-color: var(--ag-jobs-primary, #0d6efd);
}

.job-info-sidebar .job-info-compact {
    padding: 0;
}

.job-info-sidebar .job-info-compact h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.job-info-sidebar .job-info-minimal {
    padding: 0.5rem 0;
}

.job-info-sidebar .job-info-minimal h4 {
    font-size: 0.875rem;
    font-weight: 600;
}

.job-info-sidebar .job-info-minimal ul {
    margin-bottom: 0;
}

.job-info-sidebar .job-info-minimal li {
    margin-bottom: 0.25rem;
}

/* ============================================
   Fieldset Legend Layout Variants
   ============================================ */

/* Standard - already defined above */
.application-form .fieldset-legend.fieldset-legend-default {
    /* Uses base styles */
}

/* Kompakt - ohne Unterstrich */
.application-form .fieldset-legend.fieldset-legend-compact {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 1rem;
}

/* Mit Hintergrund */
.application-form .fieldset-legend.fieldset-legend-highlight {
    background: var(--ag-jobs-primary, #0d6efd);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: var(--ag-jobs-border-radius, 0.375rem);
    border-bottom: none;
    margin-bottom: 1.5rem;
}

/* Minimal - kleine Schrift */
.application-form .fieldset-legend.fieldset-legend-minimal {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6c757d;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Zentriert */
.application-form .fieldset-legend.fieldset-legend-centered {
    text-align: center;
    border-bottom: none;
    position: relative;
    margin-bottom: 1.5rem;
}

.application-form .fieldset-legend.fieldset-legend-centered::before,
.application-form .fieldset-legend.fieldset-legend-centered::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 2px;
    background: var(--ag-jobs-primary, #0d6efd);
}

.application-form .fieldset-legend.fieldset-legend-centered::before {
    left: 0;
}

.application-form .fieldset-legend.fieldset-legend-centered::after {
    right: 0;
}

/* ============================================
   Form Container Base & Overflow Fix
   ============================================ */

.ag-jobs-application-form {
    overflow-x: hidden;
}

.application-form-container {
    overflow-x: hidden;
}

/* ============================================
   Form Container Style Variants
   ============================================ */

/* Standard - kein spezieller Stil */
.application-form-container.container-style-default {
    /* Keine zusaetzlichen Styles */
}

/* Card - mit Rahmen */
.application-form-container.container-style-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: var(--ag-jobs-border-radius, 0.5rem);
    padding: 1.5rem;
}

/* Card mit Schatten */
.application-form-container.container-style-card-shadow {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--ag-jobs-border-radius, 0.5rem);
    padding: 1.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Card mit Hover-Effekt */
.application-form-container.container-style-card-hover {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--ag-jobs-border-radius, 0.5rem);
    padding: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.application-form-container.container-style-card-hover:hover {
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Heller Hintergrund */
.application-form-container.container-style-light {
    background: #f8f9fa;
    border-radius: var(--ag-jobs-border-radius, 0.5rem);
    padding: 1.5rem;
}

/* Dunkler Hintergrund */
.application-form-container.container-style-dark {
    background: #212529;
    color: #f8f9fa;
    border-radius: var(--ag-jobs-border-radius, 0.5rem);
    padding: 1.5rem;
}

.application-form-container.container-style-dark .form-control,
.application-form-container.container-style-dark .form-select {
    background-color: #343a40;
    border-color: #495057;
    color: #f8f9fa;
}

.application-form-container.container-style-dark .form-control::placeholder {
    color: #adb5bd;
}

.application-form-container.container-style-dark .form-control:focus,
.application-form-container.container-style-dark .form-select:focus {
    background-color: #3d4349;
    border-color: var(--ag-jobs-primary, #0d6efd);
    color: #f8f9fa;
}

.application-form-container.container-style-dark .text-muted {
    color: #adb5bd !important;
}

.application-form-container.container-style-dark .fieldset-legend {
    color: #f8f9fa;
}

.application-form-container.container-style-dark .form-header h1,
.application-form-container.container-style-dark .form-header p {
    color: #f8f9fa;
}

.application-form-container.container-style-dark .form-header p.text-muted {
    color: #adb5bd !important;
}

/* Gradient Hintergrund */
.application-form-container.container-style-gradient {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--ag-jobs-border-radius, 0.5rem);
    padding: 1.5rem;
}

/* Akzentfarbe links */
.application-form-container.container-style-accent-left {
    background: #fff;
    border-left: 4px solid var(--ag-jobs-primary, #0d6efd);
    border-radius: 0 var(--ag-jobs-border-radius, 0.5rem) var(--ag-jobs-border-radius, 0.5rem) 0;
    padding: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Akzentfarbe oben */
.application-form-container.container-style-accent-top {
    background: #fff;
    border-top: 4px solid var(--ag-jobs-primary, #0d6efd);
    border-radius: 0 0 var(--ag-jobs-border-radius, 0.5rem) var(--ag-jobs-border-radius, 0.5rem);
    padding: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Glassmorphism */
.application-form-container.container-style-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--ag-jobs-border-radius, 0.75rem);
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Eingesenkt (Well) */
.application-form-container.container-style-well {
    background: #f5f5f5;
    border: 1px solid #e3e3e3;
    border-radius: var(--ag-jobs-border-radius, 0.5rem);
    padding: 1.5rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Responsive Anpassungen fuer Container-Styles */
@media (max-width: 767.98px) {
    .application-form-container.container-style-card,
    .application-form-container.container-style-card-shadow,
    .application-form-container.container-style-card-hover,
    .application-form-container.container-style-light,
    .application-form-container.container-style-dark,
    .application-form-container.container-style-gradient,
    .application-form-container.container-style-accent-left,
    .application-form-container.container-style-accent-top,
    .application-form-container.container-style-glass,
    .application-form-container.container-style-well {
        padding: 1rem;
        border-radius: var(--ag-jobs-border-radius, 0.375rem);
    }
}

/* ============================================
   Header Background Helpers
   ============================================ */

/* Gradient Hell fuer Header */
.bg-gradient-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Header Title/Subtitle mit Hintergrund */
.form-header [class*="bg-"]:not(.bg-transparent) {
    display: inline-block;
}

.form-header .bg-light,
.form-header .bg-dark,
.form-header .bg-primary,
.form-header .bg-secondary,
.form-header .bg-success,
.form-header .bg-info,
.form-header .bg-warning,
.form-header .bg-white {
    padding: 0.5rem 1rem;
    border-radius: var(--ag-jobs-border-radius, 0.375rem);
}

/* ============================================
   Job Detail - Card Style Variants
   ============================================ */

/* Hover Effect Card */
.ag-jobs-detail .ag-card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ag-jobs-detail .ag-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
}

/* Accent Top Card */
.ag-jobs-detail .ag-card-accent-top {
    border-top: 4px solid var(--ag-jobs-primary, #0d6efd);
    border-radius: 0;
}

.ag-jobs-detail .ag-card-accent-top .card-header {
    border-radius: 0;
}

/* Accent Left Card */
.ag-jobs-detail .ag-card-accent-left {
    border-left: 4px solid var(--ag-jobs-primary, #0d6efd);
    border-radius: 0;
}

.ag-jobs-detail .ag-card-accent-left .card-header {
    border-radius: 0;
}

/* ============================================
   Job Detail - Section Title Styles
   ============================================ */

/* Accent Left Section Title */
.ag-jobs-detail .ag-section-title.ag-section-accent-left {
    padding-left: 1rem;
    border-left: 4px solid var(--ag-jobs-primary, #0d6efd);
}

/* Underline Section Title */
.ag-jobs-detail .ag-section-title.ag-section-underline {
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--ag-jobs-primary, #0d6efd);
    display: inline-block;
}

/* Minimal Section Title */
.ag-jobs-detail .ag-section-title.ag-section-minimal {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
}

/* With Icon Section - icon color */
.ag-jobs-detail .ag-section-with-icon .card-header svg {
    color: var(--ag-jobs-primary, #0d6efd);
}

/* ============================================
   Job Detail - Content Layout Styles
   ============================================ */

/* Tabs styling */
.ag-jobs-detail .nav-tabs .nav-link {
    color: var(--ag-jobs-dark, #212529);
    border-radius: 0.375rem 0.375rem 0 0;
}

.ag-jobs-detail .nav-tabs .nav-link:hover {
    border-color: #e9ecef #e9ecef #dee2e6;
}

.ag-jobs-detail .nav-tabs .nav-link.active {
    color: var(--ag-jobs-primary, #0d6efd);
    font-weight: 500;
}

/* Accordion styling */
.ag-jobs-detail .accordion-button:not(.collapsed) {
    color: var(--ag-jobs-primary, #0d6efd);
    background-color: rgba(13, 110, 253, 0.05);
}

.ag-jobs-detail .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* ============================================
   Job Detail - Image Position & Size Styles
   ============================================ */

/* Image size variants */
.ag-jobs-detail .ag-img-large {
    max-width: 75%;
}

.ag-jobs-detail .ag-img-medium {
    max-width: 50%;
}

.ag-jobs-detail .ag-img-small {
    max-width: 33%;
}

.ag-jobs-detail .ag-img-thumbnail {
    max-width: 25%;
}

/* Floating image containers */
.ag-jobs-detail .ag-img-float-left {
    float: left;
}

.ag-jobs-detail .ag-img-float-right {
    float: right;
}

/* Inline image (centered) */
.ag-jobs-detail .ag-img-inline {
    display: block;
    text-align: center;
}

.ag-jobs-detail .ag-img-inline img {
    display: inline-block;
}

/* Polaroid style */
.ag-jobs-detail .ag-img-polaroid {
    background: #fff;
    padding: 0.5rem;
    padding-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    transform: rotate(-1deg);
}

.ag-jobs-detail .ag-img-polaroid:hover {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

/* Responsive image floats */
@media (max-width: 767.98px) {
    .ag-jobs-detail .ag-img-float-left,
    .ag-jobs-detail .ag-img-float-right {
        float: none;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .ag-jobs-detail .ag-img-large,
    .ag-jobs-detail .ag-img-medium,
    .ag-jobs-detail .ag-img-small,
    .ag-jobs-detail .ag-img-thumbnail {
        max-width: 100%;
    }
}

/* ============================================
   Application Form - Mobile Optimizations
   ============================================ */

/* Tablet and below (991px) */
@media (max-width: 991.98px) {
    /* Application form container adjustments */
    .ag-jobs-application-form .container,
    .ag-jobs-application-form .container.px-0 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Sidebar becomes full-width and moves below form */
    .ag-jobs-application-form .col-lg-4 {
        margin-top: 2rem;
    }

    /* Remove sticky behavior on sidebar */
    .ag-jobs-application-form .job-info-sidebar {
        position: static !important;
    }

    /* Adjust form container padding */
    .ag-jobs-application-form .application-form-container {
        padding: 1.5rem !important;
    }
}

/* Mobile devices (767px and below) */
@media (max-width: 767.98px) {
    /* Application form container */
    .ag-jobs-application-form {
        padding: 0 !important;
    }

    .ag-jobs-application-form .container,
    .ag-jobs-application-form .container.px-0 {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    /* Form container reduced padding */
    .ag-jobs-application-form .application-form-container {
        padding: 1rem !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }

    /* Form header adjustments */
    .ag-jobs-application-form .form-header {
        margin-bottom: 1.5rem !important;
    }

    .ag-jobs-application-form .form-header h1,
    .ag-jobs-application-form .form-header .h1 {
        font-size: 1.5rem !important;
    }

    .ag-jobs-application-form .form-header h3,
    .ag-jobs-application-form .form-header .h3 {
        font-size: 1.25rem !important;
    }

    /* Fieldset adjustments */
    .ag-jobs-application-form .application-form .form-fieldset {
        margin-bottom: 1.5rem !important;
    }

    .ag-jobs-application-form .application-form .fieldset-legend {
        font-size: 1rem !important;
        padding: 0 0.25rem 0.5rem 0.25rem !important;
        margin-bottom: 1rem !important;
    }

    /* Make form columns stack on mobile - Bootstrap override */
    .ag-jobs-application-form .application-form .row > [class*="col-md-"],
    .ag-jobs-application-form .application-form .form-fieldset .row > [class*="col-md-"],
    .ag-jobs-application-form .application-form .row.g-3 > [class*="col-md-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Smaller gap between rows on mobile */
    .ag-jobs-application-form .application-form .row.g-3 {
        --bs-gutter-y: 0.75rem;
        --bs-gutter-x: 0.75rem;
    }

    /* Form group spacing */
    .ag-jobs-application-form .application-form .form-group {
        margin-bottom: 1rem !important;
    }

    /* Input fields touch-friendly sizing */
    .ag-jobs-application-form .application-form .form-control,
    .ag-jobs-application-form .application-form .form-select {
        padding: 0.875rem 1rem !important;
        font-size: 16px !important; /* Prevents zoom on iOS */
        min-height: 48px !important; /* Touch target size */
    }

    /* Textarea specific */
    .application-form textarea.form-control {
        min-height: 120px;
    }

    /* Select dropdown touch-friendly */
    .application-form .form-select {
        background-position: right 1rem center;
    }
}

/* Small mobile devices (575px and below) */
@media (max-width: 575.98px) {
    /* Container padding */
    .ag-jobs-application-form .container,
    .ag-jobs-application-form .container.px-0 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    /* Form container minimal padding */
    .ag-jobs-application-form .application-form-container {
        padding: 0.75rem !important;
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        width: calc(100% + 1rem);
    }

    /* All columns full width - with high specificity */
    .ag-jobs-application-form .application-form [class*="col-"],
    .ag-jobs-application-form .application-form .row > [class*="col-"],
    .ag-jobs-application-form .application-form .form-fieldset .row > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    /* Row gutter adjustments */
    .ag-jobs-application-form .application-form .row,
    .ag-jobs-application-form .application-form .row.g-3 {
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 0.5rem;
        margin-left: -0.25rem;
        margin-right: -0.25rem;
    }

    /* File upload optimizations */
    .ag-jobs-application-form .application-form .file-upload-group {
        padding: 0.875rem !important;
    }

    .ag-jobs-application-form .application-form .file-upload-label {
        font-size: 0.9375rem !important;
    }

    .ag-jobs-application-form .application-form .file-input-wrapper {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.5rem !important;
    }

    .ag-jobs-application-form .application-form .file-input-button {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.75rem 1rem !important;
        min-height: 48px !important; /* Touch target */
        font-size: 0.9375rem !important;
    }

    .ag-jobs-application-form .application-form .file-input-filename {
        text-align: center !important;
        font-size: 0.8125rem !important;
        padding: 0.5rem !important;
        background: rgba(0, 0, 0, 0.03) !important;
        border-radius: 0.25rem !important;
    }

    /* Captcha input full width on mobile */
    .ag-jobs-application-form .application-form .captcha-input {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Privacy section spacing */
    .ag-jobs-application-form .application-form .col-12.mt-3 {
        margin-top: 1rem !important;
    }

    /* Privacy checkbox touch-friendly */
    .ag-jobs-application-form .application-form .privacy-checkbox-round {
        padding: 0.75rem 0 !important;
    }

    .ag-jobs-application-form .application-form .privacy-checkbox-round .privacy-checkmark {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
    }

    .ag-jobs-application-form .application-form .privacy-checkbox-round .privacy-text {
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
    }

    /* Collapse toggle */
    .ag-jobs-application-form .application-form .collapse-toggle {
        font-size: 0.9375rem !important;
    }

    /* Datenschutz text */
    .ag-jobs-application-form .application-form .datenschutz-text {
        font-size: 0.8125rem !important;
        padding: 0.75rem 0 0.75rem 0.75rem !important;
    }

    /* Submit button full width and touch-friendly */
    .ag-jobs-application-form .application-form .btn-wrapper {
        padding-top: 1.5rem !important;
    }

    .ag-jobs-application-form .application-form .btnContact {
        width: 100% !important;
        min-height: 52px !important;
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
    }

    /* Error alert */
    .ag-jobs-application-form .application-form #formErrors {
        font-size: 0.875rem !important;
    }

    .ag-jobs-application-form .application-form #formErrors ul {
        padding-left: 1.25rem !important;
    }

    /* Form feedback message */
    .ag-jobs-application-form .application-form .form-feedback {
        padding: 0.75rem !important;
        font-size: 0.9375rem !important;
    }
}

/* ============================================
   Application Form - Job Card Mobile
   ============================================ */
@media (max-width: 767.98px) {
    /* Job card compact layout */
    .job-card-wrapper .job-card-compact {
        flex-direction: column;
        align-items: flex-start;
    }

    .job-card-wrapper .job-card-logo {
        margin-bottom: 0.75rem;
    }

    .job-card-wrapper .job-card-title {
        font-size: 1.125rem;
    }

    .job-card-wrapper .job-card-badges {
        margin-top: 0.5rem;
    }

    /* Highlight card */
    .job-card-highlight {
        padding: 1rem;
    }

    .job-card-highlight .d-flex {
        flex-direction: column;
    }

    .job-card-highlight .job-card-logo {
        margin-bottom: 1rem;
    }

    /* Default card layout */
    .job-card-default .d-flex {
        flex-direction: column;
    }

    .job-card-default .job-card-logo {
        margin-bottom: 0.75rem;
    }

    /* Hero card */
    .job-card-hero .d-flex {
        flex-direction: column;
    }

    .job-card-hero .job-card-logo {
        margin-bottom: 0.75rem;
    }
}

/* Extra small screens - smartphones */
@media (max-width: 575.98px) {
    /* All job card layouts */
    .job-card-wrapper {
        margin-bottom: 1rem;
    }

    /* Logo smaller on mobile */
    .job-card-wrapper .job-card-logo img {
        width: 50px !important;
        height: 50px !important;
    }

    .job-card-highlight .job-card-logo img {
        width: 60px !important;
        height: 60px !important;
    }

    .job-card-hero .job-card-logo img {
        width: 60px !important;
        height: 60px !important;
    }

    /* Titles smaller and word-break */
    .job-card-wrapper .job-card-title {
        font-size: 1rem;
        word-break: break-word;
        hyphens: auto;
        line-height: 1.3;
    }

    .job-card-highlight .job-card-title {
        font-size: 1.125rem;
    }

    .job-card-hero .job-card-title {
        font-size: 1.25rem;
    }

    /* Subtitle smaller */
    .job-card-wrapper .job-card-subtitle {
        font-size: 0.875rem;
        word-break: break-word;
    }

    /* Badges wrap nicely */
    .job-card-wrapper .job-card-badges {
        gap: 0.375rem;
    }

    .job-card-wrapper .job-card-badges .badge {
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
        white-space: normal;
        text-align: left;
    }

    /* Compact layout: horizontal on mobile */
    .job-card-compact {
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }

    .job-card-compact .job-card-logo {
        margin-bottom: 0 !important;
        flex-shrink: 0;
    }

    .job-card-compact .job-card-content {
        min-width: 0;
        flex: 1;
    }

    /* Highlight card padding */
    .job-card-highlight {
        padding: 0.875rem;
    }

    /* Hero card min-height */
    .job-card-hero {
        min-height: 160px !important;
    }

    .job-card-hero .position-relative.p-4 {
        padding: 1rem !important;
    }

    /* Default card padding */
    .job-card-default .card-body {
        padding: 0.875rem;
    }
}

/* ============================================
   Application Form - Sidebar Mobile
   ============================================ */
@media (max-width: 991.98px) {
    /* Job info sidebar full width */
    .ag-jobs-application-form .job-info-sidebar {
        margin-top: 1.5rem;
    }

    .ag-jobs-application-form .job-info-card {
        padding: 1rem;
    }

    /* Compact sidebar on tablet */
    .ag-jobs-application-form .job-info-compact,
    .ag-jobs-application-form .job-info-minimal {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .ag-jobs-application-form .job-info-compact > *,
    .ag-jobs-application-form .job-info-minimal > * {
        flex: 1 1 auto;
    }
}

@media (max-width: 575.98px) {
    /* Sidebar card reduced padding */
    .ag-jobs-application-form .job-info-card {
        padding: 0.875rem;
        border-radius: 0.375rem;
    }

    .ag-jobs-application-form .job-info-card h3 {
        font-size: 1rem;
    }
}

/* ============================================
   Application Form - Back Button Mobile
   ============================================ */
@media (max-width: 575.98px) {
    .ag-jobs-application-form .btn-outline-secondary.btn-sm {
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
    }
}

/* ============================================
   Round Checkbox - Mobile Touch Target
   ============================================ */
@media (max-width: 575.98px) {
    /* Larger touch target for round checkbox */
    .application-form .checkbox-wrapper-round .privacy-checkbox-round {
        padding: 0.5rem 0;
    }

    .application-form .checkbox-wrapper-round .privacy-label {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .application-form .checkbox-wrapper-round .privacy-input {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        margin-top: 2px;
    }

    .application-form .checkbox-wrapper-round .privacy-checkmark {
        width: 22px;
        height: 22px;
        min-width: 22px;
    }

    .application-form .checkbox-wrapper-round .privacy-text {
        flex: 1;
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .application-form .checkbox-wrapper-round .invalid-feedback {
        margin-left: 0;
        padding-left: 0;
        margin-top: 0.5rem;
    }
}

/* ============================================
   iOS Specific Fixes
   ============================================ */
@supports (-webkit-touch-callout: none) {
    /* Prevent zoom on input focus in iOS */
    .application-form .form-control,
    .application-form .form-select,
    .application-form textarea {
        font-size: 16px;
    }

    /* Better touch scrolling */
    .ag-jobs-application-form {
        -webkit-overflow-scrolling: touch;
    }
}

/* ============================================
   Landscape Mobile Optimization
   ============================================ */
@media (max-width: 767.98px) and (orientation: landscape) {
    .ag-jobs-application-form .application-form-container {
        padding: 1rem 1.5rem;
    }

    /* Two columns in landscape for personal data */
    .application-form .form-fieldset .row > .col-md-4,
    .application-form .form-fieldset .row > .col-md-5,
    .application-form .form-fieldset .row > .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .application-form .form-fieldset .row > .col-md-3 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    .application-form .form-fieldset .row > .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ============================================
   Submit Modal Overlay
   ============================================ */
.submit-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.submit-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.submit-modal-content {
    background: #fff;
    border-radius: 1rem;
    padding: 2.5rem 3rem;
    text-align: center;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
    max-width: 90%;
    width: 400px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.submit-modal-overlay.active .submit-modal-content {
    transform: scale(1);
}

.submit-modal-spinner {
    margin-bottom: 0.5rem;
}

.submit-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ag-jobs-dark, #212529);
    margin-bottom: 0.5rem;
}

.submit-modal-text {
    font-size: 0.95rem;
    color: var(--ag-jobs-secondary, #6c757d);
}

/* Animation for spinner */
.submit-modal-overlay .spinner-border {
    animation: spinner-border 0.75s linear infinite;
}

@keyframes modal-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.submit-modal-overlay.active .submit-modal-text {
    animation: modal-pulse 2s ease-in-out infinite;
}

/* Success state */
.submit-modal-overlay.success .submit-modal-spinner .spinner-border {
    display: none;
}

.submit-modal-overlay.success .submit-modal-spinner::after {
    content: '\2713';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--ag-jobs-success, #198754);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    animation: success-pop 0.3s ease-out;
}

@keyframes success-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.submit-modal-overlay.success .submit-modal-title {
    color: var(--ag-jobs-success, #198754);
}

.submit-modal-overlay.success .submit-modal-text {
    animation: none;
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .submit-modal-content {
        padding: 2rem 1.5rem;
        width: 320px;
    }

    .submit-modal-title {
        font-size: 1.1rem;
    }

    .submit-modal-text {
        font-size: 0.9rem;
    }
}

/* ============================================
   Job List Button Hover States
   ============================================ */
.ag-jobs-list .btn:hover {
    color: var(--bs-btn-hover-color);
    background-color: #5c636a;
    border-color: #5c636a;
}
