html,body{
    overflow:hidden;
}

.newImplementationScreen {
    position: fixed;
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 700px;
    max-height: 75%;
    overflow-y: auto;
    background-color: #ffffff;
    border-radius: 16px;
}

.newImplementationHeader {
    height: 60px;
    padding: 0 30px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    border-radius: 16px;
    background-color: #f2f2f2;
    box-shadow: 0px 7px 0px #9dc8aa;
    position: relative;
    z-index: 2;
}

.newImplementationHeader p {
    font-family: 'Source Sans 3';
    text-decoration: unset;
    font-size: 1.3em;
    color: #004930;
    font-weight: 700;
    margin: unset;
}

.newImplementationForm {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 35px 30px 30px;
    box-sizing: border-box;
}

.formField {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.formField label {
    font-family: 'Source Sans 3';
    font-size: 1.1em;
    color: #004930;
    font-weight: 600;
}

.formField input[type="text"] {
    font-family: 'Source Sans 3';
    font-size: 1.1em;
    color: #004930;
    font-weight: 400;
    background-color: #f2f2f2;
    border: 2px solid #f2f2f2;
    border-radius: 16px;
    padding: 12px 16px;
    outline: none;
    transition: border-color 0.2s ease;
}

.formField input[type="text"]:focus {
    border-color: #004930;
}

.imagePicker {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.imagePreview {
    width: 200px;
    height: 120px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f2f2f2;
    border-radius: 16px;
    overflow: hidden;
}

.imagePreview img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.imagePreview p {
    font-family: 'Source Sans 3';
    font-size: 1em;
    color: #004930;
    font-weight: 400;
    margin: unset;
    opacity: 0.6;
}

.imagePickerActions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.imagePickerActions button,
.formActions button,
.formActions a {
    font-family: 'Source Sans 3';
    text-decoration: unset;
    font-size: 1.1em;
    font-weight: 700;
    border: none;
    border-radius: 16px;
    padding: 10px 22px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.imagePickerActions button:hover,
.formActions button:hover,
.formActions a:hover {
    transform: scale(1.05);
}

.imagePickerActions button {
    background-color: #f2f2f2;
    color: #004930;
}

.imagePickerActions button[hidden] {
    display: none;
}

.formActions {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.cancelImplementation {
    background-color: #f2f2f2;
    color: #004930;
}

.saveImplementation {
    background-color: #004930;
    color: #ffffff;
}

.formError {
    font-family: 'Source Sans 3';
    font-size: 1em;
    color: #004930;
    font-weight: 600;
    background-color: #f2f2f2;
    border-left: 4px solid #004930;
    border-radius: 16px;
    padding: 12px 16px;
    margin: unset;
}

/* Responsive */

/* Short screens: keep the card clear of the fixed header */
@media (max-height: 650px) {
    .newImplementationScreen {
        top: 110px;
        max-height: calc(100% - 126px);
    }
}

@media (max-width: 768px) {
    .newImplementationScreen {
        top: 110px;
        left: 16px;
        transform: none;
        width: calc(100% - 32px);
        max-width: none;
        max-height: calc(100% - 126px);
    }

    .newImplementationHeader {
        padding: 0 20px;
    }

    .newImplementationHeader p {
        font-size: 1.15em;
    }

    .newImplementationForm {
        padding: 30px 16px 20px;
        gap: 20px;
    }

    .imagePicker {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .imagePreview {
        width: 100%;
    }

    .imagePickerActions {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .formActions {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 10px;
    }

    .formActions a,
    .formActions button {
        text-align: center;
    }

    .imagePickerActions button,
    .formActions button,
    .formActions a {
        font-size: 1em;
    }
}
