@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Axiforma';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/AxiformaRegular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Axiforma Bold';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/AxiformaSemiBold.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}




body{
    padding:0;
    margin:0;
    background: #f2eee8;
    overflow:hidden;
    font-family: "Axiforma", serif;
    position: fixed; /* Add this to prevent mobile browser issues */
    width: 100%;
    height: 100%;
}

::placeholder, ::-ms-input-placeholder {
    background-color: rgb(214, 74, 0);
    font-family: "Axiforma", serif;
    font-size: 20px;
}

section{
    position: absolute; /* Change from relative to absolute */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #f2eee8;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    transform: translateY(100vh); /* Start below viewport */
    opacity: 0;
    visibility: hidden;
    /* Add smooth transition */
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out, visibility 0.5s;
}

section.section-active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    z-index: 10;
}


.logo{
    display: block;
    margin: 0 auto;
    min-width: 300px;
    max-width: 379px;
    width: 90vw;
}

.headline{
    font-family: "Axiforma Bold", serif;
    font-weight: 500;
    font-size:24px;
    color:#000;
}

.text-default{
    font-family: "Axiforma", serif;
    font-weight: 400;
    font-size:16px;
    color:rgba(0,0,0,0.7)
}

.center-content-wrapper{
    display:flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 40px 0;
    box-sizing: border-box;
}

.center-content-column{
    box-sizing: border-box;
    display:flex;
    flex-direction:column;
    width: 100%;
    min-width:300px;
    max-width:720px;
    margin: auto;
    padding: 20px 20px 80px 20px;
    /*overflow-y: hidden;*/
}

.text-center{
    text-align: center;
}

.button-info-wrapper{
    display:flex;
    align-items:center;
    position:relative;
}

.button-info-wrapper-left{
    display: flex;
    align-items: center;
}

.button-info{
    margin-left: 12px;
}

.button-info-text{
    position: absolute;
    font-size: 14px;
    width: auto;
}

.btn-orange, .btn-left{
    position: relative;
    font-family: inherit;
    line-height: initial;
    font-weight: 700;
    cursor: pointer;
    transition-duration: 0.1s;
    transition-property: background-color, color, border-color, opacity, box-shadow;
    transition-timing-function: ease-out;
    outline: none;
    border: 1px solid transparent;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 3px 12px 0px;
    padding-block: 6px;
    padding-inline: 14px;
    min-height: 40px;
    background-color: rgb(214, 74, 0);
    color: rgb(255, 255, 255);
    border-radius: 200px;
    font-size:24px;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.btn-orange{
    margin: 0 auto;
}

.btn-group{
    position:fixed;
    bottom:40px;
    right:40px;
    display: flex;
    z-index: 9999; /* Higher than sections */
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border-radius: 100px;
}

.btn-up{
    background-color: rgb(214, 74, 0);
    border: none;
    color: #fff;
    font-size: 16px;
    padding: 8px 12px;
    border-right: 2px solid #f2eee8;
    border-top-left-radius: 100px;
    border-bottom-left-radius: 100px;
    margin: 0;
    cursor: pointer;
    position: relative; /* Ensure proper stacking */
}

.btn-down{
    background-color: rgb(214, 74, 0);
    border: none;
    color: #fff;
    font-size: 16px;
    padding: 8px 12px;
    border-top-right-radius: 100px;
    border-bottom-right-radius: 100px;
    margin: 0;
    cursor: pointer;
    position: relative; /* Ensure proper stacking */
}

.btn-disabled{
    color:rgba(255,255,255,0.6);
}

/* Tap-Highlight auf Mobilgeräten entfernen */
.radio-input, .btn-next, .btn-finish, .pill {
    -webkit-tap-highlight-color: transparent;
    /* für andere Browser */
    outline: none;
}

.btn-next:active, .btn-up:active, .btn-down:active, .btn-finish:active{
    background-color: rgb(184, 64, 0);
    transform: scale(0.96);
    transition: transform 0.1s ease;
}

.pill{
    /* position: relative; */
    display: flex;
    align-self: start;
    -moz-box-align: center;
    align-items: center;
    border-radius: 20px;
    background-color: rgba(214, 74, 0, 0.1);
    box-shadow: rgba(214, 74, 0, 0.8) 0px 0px 0px 1px inset;
    color: rgb(214, 74, 0);
    /* max-width: 100%; */
    min-height: 40px;
    outline: 0px;
    /* padding-block: 4px; */
    max-width: 100%;
    min-width: 168px;
    transition-duration: 0.1s;
    transition-property: background-color, color, border-color, opacity, box-shadow;
    transition-timing-function: ease-out;
    word-break: break-word;
    cursor: pointer;
    opacity: 1;
    margin-bottom: 8px;
}

.pill-full{
    min-width: 100%;
    width: 100%;
}

.pill.active{
    box-shadow: rgba(214, 74, 0, 0.8) 0px 0px 0px 2px inset;
}


.pill:hover{
    background-color: rgba(214, 74, 0, 0.3);
}

.pill-trigger{
    display:flex;
    justify-content: center;
    align-items: center;
    background: #f2eee8;
    width: 20px;
    height: 20px;
    border-radius: 20px;
    margin-left: 8px;
}

.pill.active .pill-trigger{
    background: rgb(214, 74, 0);
    color:#fff;
}

.pill-text{
    margin-right: auto;
    margin-left:10px;
}

.pill-check{
    display:none;
    padding-right: 10px;
}

.pill.active .pill-check{
    display:initial;
}

.btn-invisible{
    visibility: hidden;
    pointer-events: none;
}

.phone-invalid input, .date-invalid input{
    background-color: rgba(255, 0, 0, 0.04) !important;
    margin-bottom: 5px !important;
}

.phone-invalid-info, .date-invalid-info {
    display: none;
    color: red;
    margin-bottom: 30px;
}

.phone-invalid .phone-invalid-info, .date-invalid .date-invalid-info {
    display: block;
    margin: 0;
}

.email-already-exists input{
    background-color: rgba(255, 0, 0, 0.04) !important;
    margin-bottom: 5px !important;
}

.email-already-exists-info {
    display: none;
    color: red;
    margin-bottom: 30px;
}

.email-already-exists .email-already-exists-info {
    display: block;
}

.name-invalid input, .sname-invalid input {
    background-color: rgba(255, 0, 0, 0.04) !important;
    margin-bottom: 5px !important;
}

.name-invalid-info, .sname-invalid-info {
    display: none;
    color: red;
    margin-bottom: 30px;
}

.name-invalid .name-invalid-info, .sname-invalid .sname-invalid-info {
    display: block;
    margin: 0;
}

.vacancy-form{
    background:#f2eee8;
}

.vacancy-form .section{
    margin-top: 0; /* Changed from 250px */
    padding-top: 40px;
    overflow-y: auto; /* Changed from hidden */
}

/* Fix for sections to prevent cutoff */
.vacancy-form .section:not(.section-active) {
    visibility: hidden;
    pointer-events: none;
}

form .section input, form .section textarea, form .section select{
    border: none;
    background: none;
    width: 100%;
    padding: 10px 0;
    box-shadow: rgba(214, 74, 0, 0.3) 0px 1px;
    font-family: "Axiforma", serif;
    font-size: 20px;
    color: rgb(214, 74, 0);
}

form .section .input-wrapper{
    margin-bottom: 30px;
}

form .section .error-message{
    margin: 10px 0 0 0;
    padding-left: 25px;
    color: red;
}

form .section select{
    appearance: none; /* Um zu verhindern, dass Safari den eigenen Style verwendet */
    -webkit-appearance: none;
    -moz-appearance: none;

    /* Schnelle Lösung */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='1,1 6,6 11,1' fill='none' stroke='%23D64A00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8em center;
    background-size: 0.6em;
}

form .section input:focus-visible, form .section textarea:focus-visible, form .section select:focus-visible{
    outline: none;
    box-shadow: 0 0 0 2px rgb(214, 74, 0); /* Workaround, da die Darstellung per Outline in Safari zu Problemen führte */
    padding-left: 3px;
    border-radius: 4px;
}

form .section .btn-next:focus-visible{
    outline: none;
    box-shadow: 0 0 0 3px rgb(184, 64, 0);
}

form .section label{
    color: rgb(214, 74, 0);
}

form .alert-danger{
    padding: 12px;
}

form .alert-danger p{
    margin: 0;
}

.hidden{
    display:none
}

.mt-small{
    margin-top: 10px;
}

.mb-medium{
    margin-bottom: 20px;
}

@media only screen and (max-width: 1200px) {
    .button-info, .button-info-text{
        display:none;
    }
}

.checkbox-wrapper{
    display:flex;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-wrapper input[type="checkbox"]{
    width: 50px;
}

#privacy-checkbox{
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.section-center {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}



/* Upload Area Styles vacancies / show */
.upload-container {
    margin: 30px 0;
}

.upload-area {
    border: 3px dashed #ddd;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #007bff;
    background: #f0f8ff;
    transform: translateY(-2px);
}

.upload-icon {
    font-size: 48px;
    color: #007bff;
    margin-bottom: 20px;
}

.upload-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.upload-subtext {
    color: #666;
    margin-bottom: 20px;
}

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

.files-container {
    margin-top: 30px;
}

.files-list {
    display: none;
}

.files-list.has-files {
    display: block;
}

.files-header {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.file-item {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.file-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.file-icon {
    width: 40px;
    height: 40px;
    background: #007bff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.file-info {
    flex-grow: 1;
}

.file-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    word-break: break-word;
}

.file-size {
    color: #666;
    font-size: 14px;
}

.file-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-delete, .btn-preview {
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
}

.btn-preview {
    background: #28a745;
    color: white;
}

.btn-preview:hover {
    background: #218838;
}

/* Progress Bar */
.progress-container {
    margin-top: 15px;
    display: none;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #007bff;
    width: 0%;
    transition: width 0.3s ease;
}

.btn-next:disabled {
    background: #6c757d !important;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .file-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Email Autocomplete Styles */
.email-autocomplete-wrapper {
    position: relative;
}

.email-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.email-suggestion {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.email-suggestion:last-child {
    border-bottom: none;
}

.email-suggestion:hover,
.email-suggestion.selected {
    background-color: #f0f8ff;
}

.email-suggestion .suggestion-text {
    color: #666;
}

.email-suggestion .suggestion-domain {
    color: #007bff;
    font-weight: 500;
}

/* Specifically target date inputs */
input[type="date"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent;
    border: none;
    padding: 10px 0;
    box-shadow: rgba(214, 74, 0, 0.3) 0px 1px;
    font-family: "Axiforma", serif;
    font-size: 20px;
    color: rgb(214, 74, 0);
    width: 100%;
}

/* Style the date input placeholder on WebKit browsers */
input[type="date"]::-webkit-date-and-time-value {
    text-align: left;
}

/* Hide the calendar icon on iOS */
input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
}
