﻿.MainElement {
    border: none;
    background: 0 0;
    width: 100%;
    height: 100%;
}

.mainForm {
    margin: 6px 6px 0 6px;
    height: calc(100% - 6px);
    position: relative;
    background: 0 0;
}

.spaceShadow {
    border-radius: 6px 6px 0 0;
    box-shadow: 0 0 6px rgba(0,0,0,.24);
    height: 100%;
    background: #003882;
}

.ContactBody {
    top: 0;
    border: 1px solid transparent;
    border-top-color: transparent;
    border-top-style: solid;
    border-top-width: 1px;
    border-bottom-color: transparent;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-top: none;
    border-bottom: none;
    opacity: 1;
    transition: all 1s ease;
    bottom: 50px;
    top: 0;
    position: absolute;
    left: 0;
    right: 0;
    overflow: hidden;
    height:100%;
}

.ContactBody .ContactForm {
    padding: 0;
    overflow: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    height: 100%;
}

.FormTitle {
    padding: 10px 7%;
    max-width: 800px;
    margin: 0 auto;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    position: relative;
}

.FormDescription {
    font-size: 16px;
    padding: 0 7% 20px;
    max-width: 800px;
    margin: 0 auto;
    color: #fff;
    overflow-y: hidden;
    height:160px;
    font-weight:bold;
}

.ContactFormBorder {
    height: 100%;
}

.ContactFormInner {
    position: relative;
    height: 100%;
    border-top: 1px solid rgba(255,255,255,.5);
    overflow: auto;
}

.ContactFormContent {
    height: 100%;
    margin: 0 auto;
    max-width: 800px;
    padding: 20px 7%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
}

.ContactFormTitle{
    overflow:hidden;
}

.ContactWinButtons {
    height: 21px;
    position: absolute;
    top: 15px;
    right: 15px;
}

.ContactWinButtons .CloseButton {
    background: 0 0;
    padding: 6px;
    width: 24px;
    height: 24px;
    margin: 1px;
    opacity: 0.6;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    float: right;
}

.CloseButton span {
    display: none;
}

.ContactWinButtons .CloseButton::after {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    background: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%0A%09%20viewBox%3D%220%200%2016%2016%22%20style%3D%22enable-background%3Anew%200%200%2016%2016%3B%22%20xml%3Aspace%3D%22preserve%22%3E%0A%3Cstyle%20type%3D%22text%2Fcss%22%3E%0A%09.st0%7Bfill%3A%23FFFFFF%3B%7D%0A%3C%2Fstyle%3E%0A%3Cg%3E%0A%09%3Cpath%20class%3D%22st0%22%20d%3D%22M16%2C1.6L14.4%2C0L8%2C6.4L1.6%2C0L0%2C1.6L6.4%2C8L0%2C14.4L1.6%2C16L8%2C9.6l6.4%2C6.4l1.6-1.6L9.6%2C8L16%2C1.6z%22%2F%3E%0A%3C%2Fg%3E%0A%3C%2Fsvg%3E') no-repeat center center / contain;
}

.CloseButton {
    color: #fff;
}

.FormDescriptionSub {
    font-style: italic;
    font-size: 13px;
    height: 140px;
    overflow: auto;
}

.context-container {
    display: none;
    position: fixed;
    border: 0px none;
    overflow: hidden;
    width: 350px;
    height: 500px;
    z-index: 999997;
    bottom: 0px;
    right: 0px;
    margin-right: 2px;
}


.sectionTitle {
    font-size: 16px;
    font-weight: bold;
    padding: 10px 7% 10px;
    color: #fff;
    background-color: orange;
}

.section-separator{
    margin-top:0;
    margin-bottom:0;
}

.context-text{
    color:#fff;
}

#block-chatcontestualecentax.active :before {
    transition: top .2s ease .1s, transform .2s ease .3s;
    -webkit-transition: top .2s ease .1s, -webkit-transform .2s ease .3s;
}

#block-chatcontestualecentax.active :after {
    transition: bottom .2s ease .1s, transform .2s ease .3s;
    -webkit-transition: bottom .2s ease .1s, -webkit-transform .2s ease .3s;
}

/* Popup container */
#popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Popup content */
.popup-content {
    background: white;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Popup sections */
.popup-section {
    flex: 1 1 50%;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    border-right: 1px solid #ddd;
}

    /* Last section has no border */
    .popup-section:last-child {
        border-right: none;
    }

/* Labels */
.popup-label {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    display: block;
}

/* Buttons */
.popup-button {
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

/* Upload control */
.popup-upload {
    width: 100%;
    margin-top: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .popup-content {
        flex-direction: column;
    }

    .popup-section {
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

        .popup-section:last-child {
            border-bottom: none;
        }
}