/* WebForm */
:root {
    --color-darkblue: #25417E;
    --color-bluegray: #759EB8;
    --color-bluemiddle: #1372B2;
    --color-graylight: #f9f9f9;
    --color-gray: #BDBDBD;
    --color-darkgray: #404040;
    --color-black: #030213;
    --color-disclaimer: #1C398E;
    --color-disclaimer-bg: #EFF6FF;
    --color-disclaimer-border: #BEDBFF;
    --color-gray-new-form: #F4F6FA;
}

input, select {
    box-sizing: border-box;
}

/* FIXES */
fieldset {
    margin-left: 0;
}

fieldset.webform-composite-hidden-title {
    margin: 0;
}

.webform-multiple-table .form-item + .form-item {
    margin-top: 0;
}

select#edit-country-country {
    width: 100%;
}

.form-vacancy label,
.form-vacancy legend span {
    font-weight: 500;
    font-size: 14px;
    line-height: 16px;
    color: #4D5A71;
    display: block;
    margin-top: 20px;
    margin-bottom: 6px;
}

.form-vacancy .form-item-country-country label,
.form-vacancy .form-item-region-state label {
    margin-top: 0;
}

label.form-required:after,
legend .form-required:after {
    content: '*';
    color: red;
    margin-left: 5px;
}

/* .formvacancyimg.contact_details, */
.formvacancyimg {
    position: relative;
}

.formvacancyimg figure {
    margin: 0;
}

.formvacancyimg.experience,
.formvacancy .form-item-vacancy-id {
    display: none;
}

.formvacancyimg .field--name-body {
    position: absolute;
    top: 0;
    font-weight: 500;
    line-height: 25px;
    /* color: #FFFFFF; */
    padding: 36px 40px;
    width: 100%;
    box-sizing: border-box;
}

.progress-marker {
    font-weight: 700;
    font-size: 10px;
    line-height: 12px;
    background-color: #25417E;
    height: 50px;
}

.progress-marker::before {
    border-radius: 0;
}

.progress-step .progress-marker {
    color: #fff;
}

.webform-progress-tracker .progress-step .progress-marker::before {
    top: 12px;
    z-index: 1;
    padding-top: 3px;
    height: 21px;
    width: 24px;
}

.webform-progress-tracker .progress-step:not(.is-active) .progress-marker::before {
    /* background-color: #759EB8; */
    background-color: var(--color-bluemiddle);
    border-radius: 6px;
}

.webform-progress-tracker .progress-step.is-complete .progress-marker::before {
    color: #00050E;
    /* background-color: #FFFFFF; */
    background-color: var(--color-bluemiddle);
}

.webform-progress-tracker .progress-step.is-complete:hover .progress-marker::before {
    background-color: #DDDDDD;
}


.webform-progress-tracker .progress-step .progress-marker::after {
    background-color: unset;
    content: url(../img/svg/hook-white-small.svg);
    top: 18px;
    z-index: 1;
}

.webform-progress-tracker .progress-step.is-complete .progress-marker::after {
    background-color: unset;
}

/* CV or Form */
.formcv-or-form .form-item-vacancy-id,
.formcv-or-form-old .form-item-vacancy-id {
    display: none;
}

.formcv-or-form #edit-markup-vid,
.formcv-or-form #edit-markup-empty-vid {
    margin: 60px 0;
}

.formcv-or-form #edit-flexbox {
    border: 1px #25417E solid;
    margin: 0;
    padding: 16px 6px;
    border-radius: 4px;
}

.formcv-or-form #edit-cv--label {
    font-weight: bold;
}

/* .formcv-or-form #edit-cv {
    margin-top: 16px;
} */

.formcv-or-form .form-actions {
    margin: 30px 0;
}

.formcv-or-form input.form-submit {
    width: auto;
}

.path-webform form:not(.localized) h2 {
    font-weight: 700;
    font-size: 22px;
    line-height: 26px;
    padding-top: 55px;
    margin-bottom: 24px;
}

/*  V A C A N C Y  */
.form-vacancy form {
    position: relative;
    width: 700px;
    height: 664px;
}

.form-vacancy.experience form {
    width: 100%;
}

.form-vacancy.experience form {
    height: auto;
}

.form-vacancy form input,
.form-vacancy form select {
    border-radius: 8px;
    border-color: var(--color-bluegray);
}
.form-vacancy form input,
.form-vacancy form select,
.form-vacancy form input::placeholder {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-bluegray);
}

/*  ??????????????????????? */
.webform-type-webform-telephone .form-item {width: 100%;}
.webform-progress {
    background-color: #25417E;
}

.webform-progress {
    position: absolute;
    bottom: 0;
    width: 100%;
}
.form-vacancy.experience .webform-progress {
    position: relative;
}
/* .form-vacancy.experience .form-item-gdpr {
    clear: both;
    box-sizing: border-box;
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px;
} */
/* .form-vacancy.experience input#edit-gdpr {
     aspect-ratio: 1 / 1;
     width: 16px;
     height: 16px;
 } */
.webform-progress ul.webform-progress-tracker {
    width: 270px;
    margin: 0 auto;
}

.formvacancy #edit-personal-data,
.formvacancy #edit-contact-details {
    /* margin-left: 30px; */
    margin: 0 20px;
}

.formvacancy .webform-flexbox {
    margin: 0;
    gap: 30px;
}

.formvacancy .webform-flex--container {
    margin: 0;
}

#edit-contact-details {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
}

.formvacancy #edit-contact-details > fieldset,
.formvacancy #edit-contact-details > div {
    width: 314px;
}

.formvacancy #edit-contact-details > fieldset,
.formvacancy #edit-contact-details > div:nth-child(odd) {
    margin-right: 30px;
}

.formvacancy #edit-contact-details > fieldset#edit-phone-number-2--wrapper {
    margin-right: 0;
}

/* .formvacancy .experience .form-wrapper {
    display: flex;
} */

.formvacancy .form-wrapper div.form-item-date-avaliable {
    margin-top: 3px;
}

.formvacancy .form-wrapper input,
.formvacancy .form-wrapper select {
    width: 100%;
}

.formvacancy .form-wrapper .form-item-position-applied-for {
    width: 100%;
}

.formvacancy input,
.formvacancy select {
    width: 50%;
}

#seagoing_experience_table thead {
    display: none;
}

.formvacancy .form-wrapper > fieldset#edit-address--wrapper {
    width: 100%;
}

.form-vacancy.experience {
    float: none;
}

/* Move nav to progressbar */
.form-vacancy input.form-submit {
    position: absolute;
    bottom: 0;
    z-index: 1;
    width: auto;
    height: 50px;
    padding: 0;
    border: none;
    color: #FFFFFF;
    background-color: #25417E;
}
.progress-step.is-active .progress-marker::before {
    color: #000000;
    background-color: #FFFFFF;
    border-radius: 6px;
}

.form-vacancy input.form-submit[name="seagoing_experience_table_add"] {
    bottom: 100px;
}

.form-vacancy #edit-wizard-next {
    right: 30px;
    text-transform: uppercase;
}

.form-vacancy #edit-wizard-prev,
.form-vacancy #edit-actions-wizard-prev {
    left: 30px;
    font-weight: 400;
    text-transform: uppercase;
}

.form-vacancy #edit-actions-reset {
    right: 85px;
    font-weight: 400;
}

.form-vacancy #edit-reset {
    display: none;
}

.form-vacancy #edit-actions-submit {
    right: 30px;
}

/* End VACANCY */


label[for="edit-position-applied-for"] {
    display: block;
}

select#edit-position-applied-for {
    width: 100%;
    height: 52px;
}

.chosen-container-single .chosen-single {
    height: 52px;
    background: #FFFFFF;
    /* border: 1px solid #C5D5EA; */
    border: 1px solid var(--color-bluegray);
    border-radius: 8px;
    /* border-radius: 4px; */
    box-shadow: none;
}

.chosen-container-single .chosen-single span {
    padding: 15px;
    /* color: #00050E; */
    color: var(--color-bluegray);
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
}

.chosen-container.chosen-container-single.form-select {
    max-width: 100%;
}

/* chosen-container-single form-select */

/* May be for another form's too */
::placeholder {
    color: #C5D5EA;
    opacity: 0.6;
}

.webform-submission-form .disclaimer {
    /* background-color: #e9f5ff;
    color: #0056b3; */
    background-color: var(--color-disclaimer-bg);
    color: var(--color-disclaimer);
    border: 1px solid var(--color-disclaimer-border);;
    font-size: 0.8rem;
    padding: 0.5em 1em;
    /* border-left: 4px solid #007bff; */
    /* border-left: 4px solid var(--color-disclaimer); */
    border-radius: 10px;
    margin: 16px 0;
    padding-left: 45px;
    /*max-width: 600px;*/
}
.webform-submission-form .disclaimer .info16::before {
    content: url(/themes/custom/alphanav/img/svg/info16.svg);
    margin-left: -28px;
    padding-right: 12px;
    vertical-align: middle
}


.webform-submission-form::placeholder {
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    /* color: #759EB8; */
    opacity: 0.6;
}

.webform-submission-form input,
.webform-submission-form select {
    height: 52px;
}

.webform-submission-join-our-office-team-form input,
.webform-submission-join-our-office-team-form .chosen-container-single .chosen-single {
    height: 44px;
}

.webform-submission-join-our-office-team-form .chosen-container-single .chosen-single span {
    padding: 12px;
}

.webform-submission-join-our-office-team-form #edit-cv--description {
    font-size: 90%;
    line-height: 110%;
    margin-top: 5px;
}

.webform-submission-join-our-office-team-form #edit-cv-upload {
    height: auto;
}

.webform-submission-form input,
.webform-submission-form textarea {
    width: 100%;
}

.webform-submission-form input.form-submit {
    font-weight: 700;
}

.webform-submission-form input.form-submit:hover {
    cursor: pointer;
}

.iti--allow-dropdown input,
.iti--allow-dropdown input[type=tel] {
    padding-left: 52px !important;
}

.processed_text_internal a {
    font-weight: normal;
}

#edit-block-blue h2,
#edit-block-blue h3 {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    line-height: 165%;
    margin: 0 0 9px;
    text-transform: none;
    /*  text-transform: capitalize;*/
}

/* input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-color: #25417E;
} */ /* not worked MacOS Safari */
input:focus,
select:focus,
textarea:focus {
    /* outline: solid 2px #25417E; */
    outline: none;
    border: 2px solid #25417E !important;
}


/* Frontpage contact form fixes */
.path-frontpage #block-contact h2 {
    margin: 0;
}

/* .path-frontpage #block-contact #edit-block-blue h3 {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  line-height: 165%;
  margin-bottom: 10px;
  text-transform: uppercase;
} */


/* Contact Form */
.path-webform.contact #block-alphanav-content,
.path-frontpage #block-contact {
    background-image: url('../img/map-1920.jpg');
    background-position-x: center;
    background-position-y: top;
    background-repeat: no-repeat;
    background-size: contain;
}

#webform-submission-contact-add-form,
.webform-submission-contact-frontpage-form {
    padding: 0px;
    display: block;
}

#edit-header {
    color: #FFFFFF;
    background-color: #25417E;
}

#block-contact-country #edit-header,
form.localized #edit-header {
    margin: 0;
    padding: 0 20px;
    color: #000;
    background-color: unset;
}

.hook.white::after {
    content: url("../img/svg/hook-white.svg");
}

#block-contact-country h1,
    /* form.localized h1 {margin-top: -4px;}
    form.localized h2 {margin-bottom: 60px; padding: 0;} */
form.localized h2 {
    padding-top: 0;
}

form.localized h1 {
    margin-bottom: 60px;
    padding: 0;
}

#edit-block-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
    gap: 24px;
    width: 335px;
    background: #FFFFFF;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    /*  max-height: 580px;*/
}

#edit-block-inside,
#block-contact-country #edit-block-form,
form.localized,
form.localized #edit-block-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #4D5A71;
    /* color: #759EB8; */
    padding: 0px;
    margin: 50px;
    gap: 24px;
}

form.localized {
    flex-direction: row;
    margin: 0;
    color: initial;
    line-height: 1.75;
}

#block-contact-country #edit-block-form,
form.localized #edit-block-form {
    width: auto;
    align-items: normal;
    margin: 0;
    padding: 25px 30px;
}

form.localized #edit-localized-text div:not(.lang-switcher) p:last-of-type {
    display: inline;
}

/* #edit-block-inside::placeholder,
input::placeholder,
textarea::placeholder,
.chosen-container-single:not(.chosen-container-active) .chosen-single span {
  color: #759EB8;
} */

#edit-block-inside > div {
    width: 100%;
    max-width: 235px;
}


input:not(.button, .form-file, .form-checkbox),
select,
textarea {
    padding: 15px 10px 15px 12px;
    box-sizing: border-box;
    border: 1px solid #C5D5EA;
    border-radius: 4px;
    background-color: #FFFFFF;
}

input.bg_main-blue.white {
    border-width: 0;
    border-radius: 4px;
}

#edit-block-inside label,
#edit-block-inside legend {
    font-weight: 500;
}

#edit-block-inside #edit-actions,
#block-contact-country #edit-actions,
form.localized #edit-actions {
    width: 113px;
    /* margin: auto; */
}


#edit-block-blue {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 40px 50px 80px;
    gap: 50px;
    background-color: #25417E;
    /* border-radius: 2px; */
    border-bottom-right-radius: 4px;
}

#edit-processed-text .processed_text_internal {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0px;
    gap: 21px;
}

#edit-processed-text .processed_text_internal > div {
    line-height: 165%;
}

#edit-processed-text a[href^="tel"] {
    display: block;
    padding-bottom: 8px;
}

#edit-processed-text .addr {
    text-decoration: underline #ddd;
}

#edit-header {
    position: relative;
    margin: 60px 0 0 0;
    overflow: hidden;
    padding: 95px 0 20px;
    border-top-right-radius: 4px;
}

.path-webform.contact h1 {
    font-weight: 700;
    font-size: 28px;
    line-height: 33px;
    margin: 0;
}

/*.path-webform.contact */
/*#edit-block-blue {padding-top: 0; padding-bottom: 95px;}*/

#edit-block-form {
    float: left; /*margin-top: -60px;*/
}


/* Join our office team */
/* webform-submission-join-our-office-team-form */
.webform-submission-join-our-office-team-form h2 {
    float: left;
    padding-right: 85px;
}

#block-joinourofficeteam form {
    display: flex;
    flex-direction: row;
    margin-top: 50px;
    @media only screen and (min-width: 720px) {
        display: grid;
        grid-template-columns: 236px 1fr;
        grid-template-rows: 1fr 130px;
    }
}

#block-joinourofficeteam form .image-join-form {
    order: 3;
    @media only screen and (min-width: 720px) {

        grid-column: 2 / 3;
        grid-row: 1 / 2;
        width: 100% !important;
    }
}

#block-joinourofficeteam form .join-form-container {
    order: 2;
}

#block-joinourofficeteam form .disclaimer-container {
    order: 1;
    @media only screen and (min-width: 720px) {
        grid-column: 1 / 3;
        grid-row: 2 / 3;
    }
}

/* #block-join  ourofficeteam .webform-section-wrapper {margin-top: 20px;} */
#block-joinourofficeteam #edit-flexbox {
    padding-right: 30px;
    margin-top: -22px;
}

#block-joinourofficeteam .webform-section-wrapper > div.form-actions {
    margin-top: 15px;
}

/* #block-joinourofficeteam .webform-section-wrapper > div {width: 100%; flex-wrap: wrap; display: inline-flex; float: left; margin-top: 16px;}  268px; */
/* #block-joinourofficeteam .webform-section-wrapper > fieldset {width: 100%; flex-wrap: wrap; display: inline-flex; float: left; margin-top: 16px;}  268px; */
/* #block-joinourofficeteam .webform-section-wrapper > div:nth-child(odd) {margin-right: 30px;} */
/* #block-joinourofficeteam .webform-section-wrapper > div.form-actions {margin-top: 29px;} */
/* #block-joinourofficeteam .form-item-country-country {width: 100%;} */
/* #block-joinourofficeteam label {display: inline-flex; font-weight: 500; font-size: 14px; line-height: 22px; color: #4D5A71; margin-bottom: 5px;} */
#block-joinourofficeteam label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    line-height: 22px;
    color: #4D5A71;
    margin-top: 8px;
    /* margin-bottom: 2px; */
}

#block-joinourofficeteam label[for="edit-name"] {
    margin-top: 0;
}

#block-joinourofficeteam .iti.iti--allow-dropdown {
    display: block;
}

/* #block-joinourofficeteam input::placeholder {color: #759EB8;} */
#block-joinourofficeteam #edit-actions {
    width: 100%;
    text-align: center;
}

#block-joinourofficeteam #edit-actions-submit {
    width: 216px;
    margin: 0 auto;
    text-transform: uppercase;
}


.form-item-seagoing-experience label {
    font-weight: 500;
    font-size: 14px;
    line-height: 16px;
    margin-top: 16px;
    margin-bottom: 6px;
}


#seagoing_experience_table .webform-multiple-table {
    width: 640px;
    float: left;
    margin-left: 30px;
    /* margin-bottom: 70px; */
    margin-bottom: 0;
}

#seagoing_experience_table .webform-multiple-add {
    position: relative;
    bottom: -370px;
}

.form-item-seagoing-experience .webform-multiple-add .button {
    font-weight: 400;
    font-size: 18px;
    margin: 65px 0 0 130px;
    padding: 69px 34px 88px;
}


.form-item-seagoing-experience .position,
.form-item-seagoing-experience .shipowner,
.form-item-seagoing-experience .from,
.form-item-seagoing-experience .vessel-name,
.form-item-seagoing-experience .vessel-type,
.form-item-seagoing-experience .dwt,
.form-item-seagoing-experience .engine-type {
    float: left;
    margin-right: 12px;
}

.form-item-seagoing-experience .position,
.form-item-seagoing-experience .crew-agency,
.form-item-seagoing-experience .shipowner,
.form-item-seagoing-experience .vessel-name {
    width: 314px;
}

.form-item-seagoing-experience .from,
.form-item-seagoing-experience .till {
    width: 151px;
}

.form-item-seagoing-experience .dwt,
.form-item-seagoing-experience .vessel-type {
    width: 214px;
}

.form-item-seagoing-experience .imo {
    width: 88px;
}

.form-item-seagoing-experience .engine-type {
    width: 164px;
}

.form-item-seagoing-experience .hp-kw {
    width: 238px;
}

.formvacancy tr:last-of-type {
    margin-bottom: 36px;
}

.formvacancy tr:not(:last-of-type) {
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    background-color: #FFFFFF;
    pointer-events: none;
    margin-bottom: 10px;
    padding: 0;
}

.formvacancy tr:not(:last-of-type) label {
    display: none;
}

.formvacancy tr:not(:last-of-type) input {
    border: none;
}

.formvacancy tr:not(:last-of-type) .position input {
    font-size: 14px;
    font-weight: 700;
    color: #4D5A71;
    text-transform: uppercase;
}

.formvacancy tr:not(:last-of-type) input[type="date"]::-webkit-inner-spin-button,
.formvacancy tr:not(:last-of-type) input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
}

.formvacancy tr:not(:last-of-type) td {
    display: flex;
}

.formvacancy tr:not(:last-of-type) .crew-agency,
.formvacancy tr:not(:last-of-type) .shipowner,
.formvacancy tr:not(:last-of-type) .vessel-name,
.formvacancy tr:not(:last-of-type) .vessel-type,
.formvacancy tr:not(:last-of-type) .imo,
.formvacancy tr:not(:last-of-type) .dwt,
.formvacancy tr:not(:last-of-type) .engine-type,
.formvacancy tr:not(:last-of-type) .hp-kw {
    display: none;
}

.formvacancy tbody {
    display: flex;
    flex-direction: column-reverse;
}

/* New Upload CV disign formcv-or-form */
.webform-submission-cv-or-form-form .form-item-title h1 {
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 30px;
    text-transform: none;
}
.webform-submission-cv-or-form-form .form-item-markup-vid,
.webform-submission-cv-or-form-form .form-item-markup-empty-vid {
    text-align: center;
}
.formcv-or-form #edit-markup-vid {
    margin: 0 0 48px;
}
.webform-submission-cv-or-form-form .form-item-markup-vid a.button,
.webform-submission-cv-or-form-form .form-item-markup-empty-vid a.button {
    font-size: 14px;
    font-weight: 500;
    width: 200px;
    padding: 8px 20px;
    color: #FFFFFF;
    background-color: var(--color-black);
    text-transform: none;
    border-radius: 8px;
}
.webform-submission-cv-or-form-form .form-item-markup-vid a.button:hover,
.webform-submission-cv-or-form-form .form-item-markup-empty-vid a.button:hover {
    background-color: var(--color-bluegray);
    border: 1px solid var(--color-bluemiddle);
    cursor: pointer;
}
.webform-submission-cv-or-form-form .form-item-markup-vid a.button::before,
.webform-submission-cv-or-form-form .form-item-markup-empty-vid a.button::before {
    content: url(../img/svg/doc.svg);
    margin-right: 8px;
    position: relative;
    top: 2px;
    margin-top: 2px;
    margin-right: 16px;
    vertical-align: middle;
}

.webform-submission-cv-or-form-form #edit-upload-cv-text {
    font-size: 16px;
    margin: 2px 0 48px;
}
.webform-submission-cv-or-form-form #edit-upload-cv-text p {
    margin: 0;
}

.webform-submission-cv-or-form-form #edit-container-upload {
    font-size: 14px;
    margin-bottom: 48px;
    padding: 30px;
    background-color: #FFFFFF;
}
.webform-submission-cv-or-form-form #edit-container-upload,
.webform-submission-cv-or-form-form .form-item-cv,
.webform-submission-cv-or-form-form .form-item-gdpr {
    border: 1px solid var(--color-gray);
    border-radius: 10px;
}
/* .webform-submission-cv-or-form-form #edit-cv, */
.webform-submission-cv-or-form-form .form-item-cv {
    margin-bottom: 24px;
    padding: 0;
    text-align: center;
}
.webform-submission-cv-or-form-form .icon-upload {
    color: #717182;
}
.webform-submission-cv-or-form-form .messages--error+.icon-upload {
    color: red;
}
.webform-submission-cv-or-form-form .icon-upload:has(+input[name="cv[fids]"]) {
    color: green;
}
.webform-submission-cv-or-form-form #edit-container-upload:has(div[data-drupal-messages]) .icon-upload {
    color: red;
}
.webform-submission-cv-or-form-form .drug-n-drop {
    display: block;
    font-size: 16px;
    cursor: pointer;
    /* letter-spacing: -0.31px; */
}
.webform-submission-cv-or-form-form .file-extensions {
    font-size: 14px;
    color: var(--color-gray);
}
/* .webform-submission-cv-or-form-form  */
.form-item-gdpr {
    clear: both;
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px;
    background-color: var(--color-graylight);
}
/* .webform-submission-cv-or-form-form  */
input#edit-gdpr {
    aspect-ratio: 1 / 1;
    width: 16px;
    height: 16px;
    background-color: #FFFFFF;
    border-radius: 4px;
}
/* .webform-submission-cv-or-form-form  */
.form-item-gdpr a {
    color: var(--color-bluemiddle);
}
.form-item-gdpr:has(input#edit-gdpr:checked) {
    background-color: #FFFFFF;
}
.experience .form-item-gdpr {
    border-right: 2px solid var(--color-graylight);
    border-left: 2px solid var(--color-graylight);
}
.webform-submission-cv-or-form-form .form-actions {
    margin-bottom: 0;
    text-align: end;
}
.webform-submission-cv-or-form-form .form-actions .form-submit {
    height: auto;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    background-color: #818189;
    color: #FFFFFF;
    border: 1px solid #818189;
    border-radius: 8px;
}
.webform-submission-cv-or-form-form .form-actions .form-submit:hover {
    background-color: var(--color-bluemiddle);
    border-color: var(--color-bluemiddle);
    cursor: pointer;
}

/* Wrapper for the file input */
.webform-submission-cv-or-form-form .webform-document-file {
    position: relative;
    /* width: 100%; */
    min-height: 120px;
    padding: 30px;
    /* border: 2px dashed #ccc;
    border-radius: 6px; */
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* background: #f9f9f9; */
}

/* Hide the native input but keep it functional for drag-and-drop */
.webform-submission-cv-or-form-form input[type="file"] {
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    cursor: pointer;
    z-index: 2;
}
.webform-submission-cv-or-form-form div[data-drupal-messages] {
    border: none;
    padding: 0
}

.formvacancy #block-alphanav-content {
    background-color: #FFFFFF;
}
.webform-submission-vacancy-form {
    background-color: var(--color-gray-new-form);
    border-top-right-radius: 4px;
    /* padding-right: 30px;
    box-sizing: border-box; */
}
.experience .webform-submission-vacancy-form {
    border-top-left-radius: 4px;
}
.formvacancyimg figure img {
    border-radius: 4px 0 0 4px;
}
.webform-submission-vacancy-form .webform-progress {
    border-bottom-right-radius: 4px;
}
.experience .webform-submission-vacancy-form .webform-progress {
    border-bottom-left-radius: 4px;
}

@media screen and (max-width: 1200px) {
    .form-vacancy {
        width: calc(100% - 470px);
    }

    .form-vacancy.experience,
    .form-vacancy form {
        width: auto;
    }

    .formvacancy #edit-contact-details > fieldset,
    .formvacancy #edit-contact-details > div {
        width: calc(50% - 15px);
    }
}

@media screen and (max-width: 1133px) {
    #edit-block-form, #edit-header {
        margin-top: 0;
    }

    #edit-block-form {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    #block-joinourofficeteam #edit-flexbox {
        padding-right: 16px;
    }
}


@media screen and (max-width: 1023px) {
    /* #block-joinourofficeteam form {flex-flow: column;} */
    #block-joinourofficeteam .form-item-phone,
    #block-joinourofficeteam .form-item-age {
        clear: left;
    }

    #block-joinourofficeteam .form-item-phone-phone,
    #block-joinourofficeteam .iti--allow-dropdown {
        width: 100%;
    }

    #block-joinourofficeteam #edit-flexbox {
        width: 220px;
    }

    #block-joinourofficeteam #edit-image-form {
        width: calc(100% - 220px);
        overflow: hidden;
    }

    #seagoing_experience_table .webform-multiple-table {
        margin-left: 0;
    }
}


@media screen and (max-width: 919px) {
    .webform-submission-vacancy-form {
        background-color: unset;
    }
    .formvacancy #block-alphanav-content {
        padding: 0;
    }

    .formvacancyimg figure {
        width: 100vw;
        margin: 0 -16px;
    }

    .formvacancyimg, .form-vacancy {
        float: none;
        width: 100%;
    }

    .form-vacancy:not(.experience) form {
        height: auto;
        margin-top: 32px;
    }

    .formvacancy #edit-personal-data,
    .formvacancy #edit-contact-details {
        margin: 0;
    }

    .formvacancy .form-wrapper {
        margin-left: 0;
    }

    .formvacancy .form-wrapper > div {
        width: 100%;
        box-sizing: border-box;
    }

    .form-vacancy.experience .webform-progress {
        width: 100vw;
        margin-left: -16px;
    }

    .form-vacancy:not(.experience) .webform-progress {
        position: relative;
        display: none;
    }

    .form-vacancy:not(.experience) input.form-submit {
        position: static;
        width: 100%;
        border-radius: 4px;
    }

    .form-vacancy:not(.experience) #edit-wizard-next {
        order: 1;
    }

    .form-vacancy:not(.experience) #edit-wizard-prev {
        font-weight: 700;
        color: #25417E;
        background-color: #FFFFFF;
        border: 1px solid #25417E;
        order: 3;
    }

    .formvacancy .form-actions {
        margin: 20px 0 60px;
    }

    .formvacancy #edit-wizard-prev {
        margin-bottom: 10px;
    }

    .form-item-seagoing-experience .webform-multiple-add .button {
    }
}


@media only screen and (max-width: 767px) {
    .webform-multiple-table-responsive td {
        padding-left: 0;
    }
}


@media only screen and (max-width: 719px) {
    .formvacancyimg.experience {
        display: block;
    }

    #seagoing_experience_table .webform-multiple-table {
        width: 100%;
        float: none;
    }

    #seagoing_experience_table tr:last-of-type td > div.form-item {
        width: 100%;
        float: none;
        margin-right: 0;
    }

    .webform-multiple-table-responsive td {
        width: 100%;
        padding: 0;
    }

    .formvacancy tr:not(:last-of-type) input {
        padding-bottom: 0;
        height: auto
    }

    .formvacancy .experience .form-wrapper {
        display: block;
    }

    .form-vacancy.experience .webform-progress {
        position: relative;
        display: none;
    }

    .form-vacancy.experience input.form-submit {
        position: static;
        width: 100%;
        border-radius: 4px;
    }

    .form-vacancy.experience input#edit-actions-submit {
        margin: 20px 0;
    }

    #seagoing_experience_table .webform-multiple-add {
        position: static;
    }

    .form-vacancy.experience #edit-actions-wizard-prev {
        font-weight: 700;
        color: #25417E;
        background-color: #FFFFFF;
        border: 1px solid #25417E;
        order: 3;
    }

    .form-vacancy.experience #edit-actions-reset {
        color: #25417E;
        background-color: unset;
    }

    .formvacancy tr:not(:last-of-type) td {
        display: block;
    }

    /* .formvacancy .experience tbody {display: block;} */
    /* filled expperience bottom table */
    .form-item-seagoing-experience .position {
        width: 100%;
        float: none;
    }

    .formvacancy .experience tr:last-of-type {
        margin-bottom: 0;
    }

    #seagoing_experience_table .webform-multiple-table {
        margin-bottom: 25px;
    }

    #seagoing_experience_table tr:last-of-type td > div.form-item.js-form-type-date,
    #seagoing_experience_table tr:last-of-type td > div.form-item.imo,
    #seagoing_experience_table tr:last-of-type td > div.form-item.dwt,
    #seagoing_experience_table tr:last-of-type td > div.form-item.engine-type,
    #seagoing_experience_table tr:last-of-type td > div.form-item.hp-kw {
        width: calc(50% - 3px);
    }

    #seagoing_experience_table tr:last-of-type td > div.form-item.from,
    #seagoing_experience_table tr:last-of-type td > div.form-item.imo,
    #seagoing_experience_table tr:last-of-type td > div.form-item.engine-type {
        float: left;
        margin-right: 6px;
    }

    #seagoing_experience_table tr:last-of-type .webform-submission-form input {
        height: 24px;
    }

    #seagoing_experience_table tr:not(:last-of-type) {
        margin-bottom: 0;
        border-bottom: 1px solid #B3C5D7;
    }
}


@media only screen and (max-width: 480px) {
    #block-joinourofficeteam .webform-section-wrapper > div:nth-child(odd) {
        margin-right: 0;
    }

    .formvacancy #edit-contact-details > fieldset,
    .formvacancy #edit-contact-details > div {
        width: 100%;
        margin-right: 0 !important;
    }

    .path-webform.contact #block-alphanav-content,
    .path-frontpage #block-contact {
        background-image: url('../img/map-480.jpg');
    }

    #edit-block-inside {
        gap: 12px;
    }

    .path-webform.contact #edit-block-blue {
        padding-top: 60px;
    }
    .webform-submission-cv-or-form-form #edit-container-upload {
        padding: 16px;
    }
    .webform-submission-cv-or-form-form #edit-upload-cv-text {
        margin-bottom: 30px;
    }
    .webform-submission-cv-or-form-form .form-actions {
        margin-top: 16px;
    }
}


@media only screen and (max-width: 402px) {
    .path-webform.contact textarea {
        height: 260px;
    }
    .webform-submission-cv-or-form-form .form-actions .form-submit {
       width: 100%;
    }
}
