* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #e6e7e8;
    font-family: Arial, sans-serif;
    font: Roboto;
}

form {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
}

select {
    border-radius: 3px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    font-size: 15px !important;
    color: #8493a7;
    height: 50px;
    padding: 10px;
    padding-inline-start: 15px;
    -webkit-appearance: none;
    appearance: none;
    -moz-appearance: none;
    background-image: url("../images/select-arrow.png");
    background-repeat: no-repeat;
    background-size: 8px;
    background-position: calc(100% - 15px);
}

.custom__dropdown {
    padding-right: 30px;
    border-radius: 3px;
    border: 1px solid #ccc;
    font-size: 15px;
    color: #8493a7;
    height: 50px;
    padding: 10px;
    padding-inline-start: 15px;
    background-image: url("../images/select-arrow.png");
    background-repeat: no-repeat;
    background-size: 8px;
    background-position: calc(100% - 15px);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.custom-dropdown-list {
    display: none;
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-option {
    padding: 8px 10px;
    cursor: pointer;
    background-color: #e6f7ff;
}

/* ------------------------action owner listbox (SAF-2991)-------------------- */
.action-owner-select {
    position: relative;
}

.action-owner-trigger {
    display: flex;
    align-items: center;
    width: 100%;
    /* What a <select> renders as here: the stylesheet sets no background-color, so the topic,
       subtopic and location selects all take the UA's #efefef. A div would be transparent. */
    background-color: #efefef;
    /* Clear of the arrow .custom__dropdown draws at calc(100% - 15px). */
    padding-inline-end: 34px;
    cursor: pointer;
    overflow: hidden;
}

.action-owner-placeholder {
    color: #8493a7;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.action-owner-selected {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.action-owner-option {
    display: flex;
    align-items: center;
    /* The same 15px the select rule above pins, so the rows read as they always have. */
    font-size: 15px;
    padding: 8px 10px;
    /* Lines the label column up with the trigger's arrow, and clears the scrollbar. */
    padding-inline-end: 34px;
    cursor: pointer;
}

.action-owner-option:hover,
.action-owner-option:focus {
    outline: none;
    background-color: #f0f0f0;
}

.action-owner-option.selected-option {
    background-color: #e6f7ff;
}

.action-owner-name {
    color: #384b64;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* A project manager's name is bold, and their label sits at the end of the row in purple. */
.action-owner-name-project-manager {
    font-weight: bold;
}

.action-owner-project-manager-label {
    color: #857aff;
    margin-inline-start: auto;
    padding-inline-start: 10px;
    white-space: nowrap;
}

input {
    padding: 10px;
    display: block;
    width: 100%;
    height: 50px;
    color: #8493a7;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

select,
textarea,
button {
    width: 100%;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

textarea {
    resize: none;
    height: 100px;
    padding: 10px;
    border: 1px solid #ccc;
    font-family: Arial, sans-serif;
    font: Roboto;
    color: #8493a7;
    font-size: 14px;
}

textarea::placeholder,
input::placeholder {
    font-family: Arial, sans-serif;
    font: Roboto;
    color: #8493a7;
    font-size: 15px;
}

select:focus,
textarea:focus,
input:focus {
    outline: none;
}

label {
    color: #384b64;
    margin-bottom: 10px;
    display: block;
    font-family: Arial, sans-serif;
    font: Roboto;
}

/* Loader Style */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* Ensure it's above other content */
}

.loader {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #243449;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    /* Animation to spin the loader */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.d-none {
    display: none !important;
}

.d-contents {
    display: block;
}

.top-bar {
    background: #243449;
    color: #fff !important;
    padding: 10px;
    text-align: right;
    font-weight: bold;
    display: flex;
    align-items: center;
    flex-flow: row-reverse;
}

.powered-by-label {
    color: #ffffff !important;
    font-weight: 400;
    font-size: 9px;
    margin-bottom: 2px;
}

.company-name-label {
    color: #ffffff !important;
    font-size: 14px;
    margin-bottom: 5px;
    margin-left: 3px;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 800px;
}

.logo {
    max-height: 100px;
}

.language-select {
    width: 70px;
    max-height: 40px;
    max-width: 70px;
}

#small-screen-emergency-number {
    display: none;
}

#large-screen-emergency-number {
    display: block;
}

.content {
    width: 100%;
    padding: 20px 30px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.log-form {
    padding-top: 50px;
}

.emergency {
    text-align: center;
    background: #1f2d3d;
    color: #fff !important;
    padding: 5px;
    border-radius: 25px;
}

.emergency .text {
    font-weight: 400;
    font-size: 13px;
    line-height: 100%;
    letter-spacing: 0px;
    text-align: center;
    color: #fff !important;
}

.emergency .number {
    font-weight: 700;
    font-size: 13px;
    line-height: 100%;
    letter-spacing: 0px;
    text-align: center;
    color: #fff !important;
    text-decoration: none;
}

#large-screen-emergency-number {
    margin-right: 15px;
    margin-left: auto;
    max-width: 333px;
    width: 100%;
}

.form-title {
    width: 100%;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0px;
    text-align: left;
}

.form-description {
    width: 100%;
    font-weight: 400;
    font-size: 15px;
    letter-spacing: 0px;
    text-align: left;
    margin-bottom: 20px;
}

.send-button-parent.disable {
    cursor: not-allowed;
}

.send-button {
    height: 55px;
    background-color: #857aff;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
}

.send-button-parent.disable .send-button {
    opacity: 0.6;
    pointer-events: none;
}

@media (max-width: 350px) {
    .language-wrapper,
    .logo-wrapper {
        width: 100%;
        margin-bottom: 15px;
    }

    .logo-wrapper {
        text-align: -webkit-center;
    }

    .language-wrapper {
        text-align: end;
    }

    .logo {
        display: block;
    }

    .header-row {
        display: block;
    }
}

@media (min-width: 700px) {
    #small-screen-emergency-number {
        display: none;
    }

    #large-screen-emergency-number {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #large-screen-emergency-number label {
        margin-bottom: 0px;
    }
}

@media (max-width: 700px) {
    .log-form {
        padding-top: 20px;
    }

    .language-select {
        align-self: self-start;
    }

    .form-topic {
        padding-top: 0px;
    }

    #small-screen-emergency-number {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 20px;
    }

    #small-screen-emergency-number label {
        margin-bottom: 0px;
    }

    #large-screen-emergency-number {
        display: none;
    }
}

@media (min-width: 1025px) {
    form {
        max-width: 800px;
    }

    .header-row {
        max-width: 1000px;
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    form {
        max-width: 800px;
    }

    .header-row {
        max-width: 1000px;
    }
}

@media (min-width: 1201px) {
    form {
        max-width: 1000px;
    }

    .header-row {
        max-width: 1200px;
    }
}

#topic-container,
#subtopic-container,
#message-container,
#location-container,
#exact-location-container,
#action-owner-container,
#name-container,
#company-container,
#email-address-container,
#phone-number-container,
#toggle-container,
#attachment-container,
#custom-fields-container .custom-group {
    margin-bottom: 20px;
}

.form-name,
.form-company,
.form-email-address,
.form-phone-number,
.form-location,
.form-exact-location,
.form-action-owner,
.form-topic {
    display: flex;
}

.label-required {
    color: red;
    margin-left: 2px;
    margin-top: -2px;
}

.error-border {
    border: 1px solid red !important;
}

.invalid-message {
    text-align: right;
    line-height: 11px;
    font-size: 12px;
    font-family: Arial, sans-serif;
    font: Roboto;
    margin-top: 5px;
    float: right;
    color: red;
}

.toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding: 12px 0px;
}

.toggle-container label {
    margin-bottom: 0px;
}

.toggle-container input:focus {
    outline: none;
}

.toggle-switch {
    position: relative;
    width: 46px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 24px;
    transition: 0.4s;
    cursor: pointer;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.4s;
}

.toggle-switch input:checked + .slider {
    background-color: #857aff;
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(22px);
}

.attachment-link {
    color: #857aff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#preview-container {
    margin-bottom: 20px;
    position: relative;
    display: flex;
    justify-content: space-between;
}

#preview-container #uploadedImage {
    width: 80%;
    height: 150px;
    object-fit: contain;
    position: relative;
}

.delete-img-container {
    background-color: black;
    border-radius: 100%;
    height: 40px !important;
    width: 40px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 65%;
}

.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
}

.custom-alert-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    text-align: center;
}
@media screen and (max-width: 700px) {
    .custom-alert-box {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #fff;
        padding: 20px;
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
        text-align: center;
        width: 80%;
    }
}

.custom-alert-button {
    display: inline-block;
    margin: 0 10px;
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    background: #f0f0f0;
}

.custom-alert-box {
    background-color: #fff;
    padding: 20px 17px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.btnY {
    color: white;
    background-color: #857aff;
    margin: 10px 5px;
    box-shadow: none;
    border: none;
    padding: 10px;
    width: 95%;
    border-radius: 3px;
    cursor: pointer;
}

.btnN {
    color: #857aff;
    background-color: #f5f2f2;
    margin: 10px 5px;
    box-shadow: none;
    border: none;
    padding: 10px;
    width: 95%;
    border-radius: 3px;
    margin-right: 10px;
    cursor: pointer;
}

.action-buttons {
    display: flex;
}

.add-attachment-icon {
    margin-left: 10px;
    background: #857aff;
    color: white;
    font-weight: bold;
    font-size: 25px;
    border-radius: 50%;
    padding: 2px;
    width: 32px;
    height: 32px;
    display: inline-block;
    text-align: center;
}

.disabled-button {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}
/* ------------------------multiple attachment section-------------------- */
.multiple-attachment-container{
    border: 2px dotted #ccc;
    padding: 10px;
    margin: 0px;
    background: #cccccc2b;
}
.multiple-attachment-container .attachment-link{
    margin: 0px;
}
.progress-bar-container p {
  margin: 0;
}
.progress-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}
.progress-bar-wrapper progress{
    width: 100%;
    background-color: #786DF0;
    height: 10px;
    border-radius: 5px;

}
.custom-progress-bar {
  width: 100%;
  height: 8px;
  background-color: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
progress::-webkit-progress-bar {
  background-color: #ccc; 
  border-radius: 5px;

}

progress::-webkit-progress-value {
  background-color: #786DF0; 
  border-radius: 5px;

}

progress::-moz-progress-bar {
  background-color: #786DF0; 
  border-radius: 5px;
}
.progress-bar-section{
 margin: 20px 0px;

}
.custom-progress-bar > div {
  height: 100%;
  background-color: #786DF0;
  transition: width 0.3s ease;
  border-radius: 5px;
}

.cancel-upload-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  width: unset;
}

.cancel-upload-btn:hover {
  color: #d9534f; 
}

.cancel-upload-icon {
  font-size: 16px;
}
#uploaded-media-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 200px));
    gap: 10px;
    background: #fff;
    margin-bottom: 0px;
    overflow-y: auto;
    padding-left: 10px;
    padding-right: 10px;
    overflow-y: auto;
    padding: 15px 0px;
}

.media-card,
.media-preview-box {
  position: relative;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1;
}

.media-image-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.view-multiple-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
}

.media-file-icon {
  font-size: 40px;
  color: #786DF0;
  margin-bottom: 8px;
}

.multiple-media-name {
  font-size: 14px;
  color: #333;
  word-break: break-all;
  max-width: 160px;
}

.single-media-trash-icon,
.single-media-download-icon {
  position: absolute;
  top: 8px;
  font-size: 18px;
  color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 6px;
  border-radius: 50%;
  cursor: pointer;
}

.single-media-trash-icon {
  right: 36px;
}

.single-media-download-icon {
  right: 8px;
}

.single-media-trash-icon:hover,
.single-media-download-icon:hover {
  background: rgba(0,0,0,0.8);
}
.trash-btn{
    position: absolute;
    top: 40px;
    right: 5px;
    width: unset;
    border-radius: 50%;
    background:white;
    color: red;
    font-size: 20px;
    height: 30px;
    
}
.download-btn{
    position: absolute;
    top: 5px;
    right: 5px;
    width: unset;
    border-radius: 50%;
    background:white;
    color: #786DF0;
    font-size: 20px;
    height: 30px;
}
.hidden {
    display: none;
}
.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
#attachment-count {
  direction: ltr;
  unicode-bidi: bidi-override;
}
#serverErrorMsg{
word-break: break-word;
}



