﻿.supportContactForm {
    background: #F4F4FF;
    padding: 3rem 0;
}

.fieldsContainer {
    display: grid;
    grid-template-columns: auto auto;
    row-gap: 51px;
    column-gap: 140px;
    margin: 16px 0 52px 0;
}

.requiredFeild {
    margin-bottom: 24px;
}

.required::after {
    display: contents;
    content: '*';
}

.clearIcon {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-size: 12px;
    cursor: pointer;
    color: black;
    visibility: hidden;
}

.datePickerIcon {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 16px;
    width: 16px;
    cursor: pointer;
    color: black;
}

.contactForm {
    max-width: 794px;
    margin: auto;
}

.input-container {
    position: relative;
}

    .input-container input {
        border: none;
        border-bottom: 1px solid #757575;
        background-color: transparent;
        width: 100%;
        font-size: 16px;
        font-weight: 400;
        line-height: 26.1px;
        text-align: right;
    }

    .input-container label {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        transition: top 0.3s ease, font-size 0.3s ease;
        font-size: 16px;
        font-weight: 400;
        color: #757575;
        text-align: right;
    }

input:focus {
    outline: none;
}

    .input-has-content label,
    input:focus + label {
        top: -4px;
        font-size: 12px;
    }

/*ul::-webkit-scrollbar {
    border-radius: 10px;
    width: 4px;
}

ul::-webkit-scrollbar-thumb {
    background-color: #C6C6C6;
    border-radius: 10px;
}*/

.error {
    display: flex;
    color: red;
    font-size: 14px;
    height: 0;
    visibility: hidden;
}

.areaText {
    font-family: "ICPangeaText";
    width: 752px;
    height: 134px;
    border-radius: 4px;
    border: 1px solid #757575;
    background-color: transparent;
    resize: none;
    padding: 15px 21px 0;
}

.input-container label[for="refDes"] {
    top: 23px;
    right: 22px;
    font-family: "ICPangeaText";
    font-size: 18px;
    font-weight: 400;
    text-align: right;
}

textarea:focus {
    outline: none
}

.addFile {
    display: flex;
    width: 155px;
    height: 40px;
    gap: 10px;
    border-radius: 4px;
    border: 1px solid black;
    background-color: white;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-family: 'ICPangeaText';
    color: black;
}

.drop-area-container {
    border: 1px solid;
    border-color: #101820;
    width: 100%;
    height: 186px;
    border-image: repeating-linear-gradient(45deg, black 9%, black 10%,transparent 10%,transparent 11%) 1;
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin-top: 24px;
    align-items: center;
}

    .drop-area-container::before {
        border-radius: 4px;
    }

.drop-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    height: 100%;
    justify-content: center;
}

.fileListContainer {
    padding: 16px 0 60px;
}

#fileInput {
    display: none;
}

#fileList {
    display: none;
    gap: 24px;
    height: 30px;
    margin: 0 0 .5rem 0;
    list-style: none;
    padding: 0;
    align-items: flex-end;
}

    #fileList li {
        display: list-item;
        text-decoration: underline;
    }

        #fileList li span {
            margin-inline-end: 4px;
        }

        #fileList li img {
            cursor: pointer;
        }

#drop-area.dragged-over {
    background-color: #f0f0f0
}

.loader {
    display: none;
    position: absolute;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.sendButton {
    font-family: "ICPangeaText";
    font-size: 16px;
    display: flex;
    width: 327px;
    height: 51px;
    padding: 1rem 0;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    background-color: #101820;
    color: white;
    cursor: pointer;
    letter-spacing: .1rem;
    margin: auto;
}

@media screen and (max-width:768px) {

    .supportContactForm {
        padding: 3rem 2rem;
    }

    .fieldsContainer {
        display: flex;
        row-gap: 63px;
        column-gap: unset;
  
        justify-content: center;
        flex-direction: column;
        margin: 42px 0 52px 0;
    }

    

        .input-container input {
            border-radius: 0;
            padding-inline-start: 0;
            padding-inline-end: 0;
        }

        .input-container label {
            right: 0;
        }

    .areaText {
        width: calc(100% - 42px);
    }

    #drop-area {
        text-align: center;
        padding: 0 24px;
        width: calc(100% - 48px);
    }

    #fileList {
        gap: 8px;
        flex-wrap: wrap;
        height: 100%;
    }
}
