.header__mobile-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;

  position: relative;
}

.header__content__backArrow {
  position: relative;
  width: max-content;
  padding: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background-color: var(--light-color);

  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.header__content__title {
    margin-inline: auto;
 
    position: absolute;
    left: 50%;
    -webkit-transform: scale(0.8) translateX(-50%);
        -ms-transform: scale(0.8) translateX(-50%);
            transform: scale(0.8) translateX(-50%);
}

.header__content__title h4 {
  font-weight: 500;
}

.header__content__title span {
  font-weight: 700;
}

form {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 1rem;
    padding-inline: 1rem;
    margin-top: 1rem;
    overflow-y: scroll;
    padding-bottom: 3rem;
    margin-top: 100px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

form::-webkit-scrollbar {
  display: none;
}

form label {
  font-size: 0.875rem;
  color: var(--dark-color);
  font-weight: 600;
}

form label span {
  color: var(--neutral-color);
}

.form__field {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 1rem;
    margin-top:1.5rem;
}

.form__field input,
.form__field textarea {
  /* background: none; */
  border: none;
  border-radius: 5px;
  background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f8f6ff));
  background: linear-gradient(180deg, #fff 0%, #f8f6ff 100%);
  -webkit-box-shadow: 0px 0px 10px 0px rgba(172, 153, 226, 0.1);
  box-shadow: 0px 0px 10px 0px rgba(172, 153, 226, 0.1);
  padding: 1.1rem;
  font-size: 0.9rem;
  -webkit-appearance: none;
  appearance: none;
  max-height: 55.98px;
}

.form__field textarea {
  resize: vertical;
}

.form__field__button {
  height: 45.727px;
  border-radius: 15px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--light-color);
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .form__field button:hover {
    opacity: 0.95;
  }
}

button.green-gradient {
  background: linear-gradient(136deg, #759979 0%, #0e6325 101.74%);
}

button.red-gradient {
  background: linear-gradient(136deg, #b20306 0%, #630e10 101.74%);
}

button.purble-gradient {
  background: var(
    --linear,
    linear-gradient(136deg, #8b78ff 0%, #5451d6 101.74%)
  );
}

.form__feedback__buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.form__feedback__buttons button {
  flex: 1;
}

.form__images__wrapper {
  background: none;
  border: none;
  border-radius: 16px;
  background: var(--Bg, linear-gradient(180deg, #fff 0%, #f8f6ff 100%));
  box-shadow: 0px 0px 10px 0px rgba(172, 153, 226, 0.1);
  padding: 1rem;
  font-size: 1rem;
}

.form__images__wrapper__uploadBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 1rem;
}

.form__images__wrapper__uploadedImages {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 1rem;
}

.form__images__wrapper__uploadedImages__image {
  position: relative;
}

.form__images__wrapper__uploadedImages__image img {
  width: 88.74px;
  height: 88.74px;
  border: 3px solid #5431c9;
  border-radius: 16px;
}

.form__images__wrapper__uploadedImages__image__deleteBtn {
  background: linear-gradient(136deg, #b20306 0%, #630e10 101.74%);
  border: 2px solid #5431c9;
  width: 30px;
  height: 30px;
  border-radius: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -10px;
  right: -10px;
}

.failed-result {
    display: flex;
    align-items: center;
    background-color: #ffe6e6;
    border: 1px solid #ffcccc;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
}

.failed-result__icon {
    margin-right: 16px;
}

.failed-result__message {
    flex: 1;
}

    .failed-result__message h5 {
        margin: 0 0 8px 0;
        color: #cc0000;
    }

    .failed-result__message ul {
        margin: 0;
        padding-left: 20px;
        color: #660000;
    }

        .failed-result__message ul li {
            margin-bottom: 4px;
        }


/* Modal Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(5px);
            backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

/* Error Modal */
.error-modal {
    position: relative;
    width: calc(100% - 2rem);
    max-width: 320px;
    border-radius: 1.5rem;
    background: #FFFFFF;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    text-align: center;
    animation: scaleIn 0.2s ease-out forwards;
}

/* Error Icon */
.error-modal__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: #FF0000;
}

/* Error Title */
.error-modal h2 {
    color: #FF0000;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Error Message */
.error-modal p {
    color: #4A4A4A;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Close Button */
.error-modal__close-button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 1rem;
    background: linear-gradient(135deg, #8B78FF 0%, #5451D6 100%);
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.error-modal__close-button:active {
    opacity: 0.9;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Add this to ensure the modal container is always on top */
#modal-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999999;
}

#modal-container .modal-overlay {
    pointer-events: all;
}

/* Error Container Styles */
.error-container {
    border-radius: 1rem;
    background: var(--Bg, linear-gradient(180deg, #FFF 0%, #F8F6FF 100%));
    box-shadow: 0px 0px 10px 0px rgba(172, 153, 226, 0.10);
    padding: 1rem;
    margin: 1rem auto;
    max-height: 33vh; /* 1/3 of the viewport height */
    overflow-y: auto;
    width: calc(100% - 2rem); /* Full width except for small margins */
}

.error-container__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.error-container__icon {
    margin-bottom: 1rem;
}

.error-container__message h5 {
    margin-bottom: 0.5rem;
    color: #cc0000;
}

.error-container__message ul {
    margin: 0;
    padding-left: 20px;
    color: #660000;
    text-align: left;
}

    .error-container__message ul li {
        margin-bottom: 0.5rem;
    }

/* Close Button */
.error-container__close-button {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    background: linear-gradient(136deg, #8b78ff 0%, #5451d6 101.74%);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

    .error-container__close-button:hover {
        opacity: 0.9;
    }

/* Timeline Styles */
.timeline {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    margin: 20px 0;
    position: relative;
}

    .timeline::before {
/*        content: '';
        position: absolute;
        top: 50%;
        left: 15%;
        right: 15%;
        height: 2px;
        background-color: #ccc;
        z-index: 1;*/
    }

.timeline__step {
    position: relative;
    text-align: center;
    z-index: 2;
    width: 20%;
}

.timeline__circle {
    width: 20px;
    height: 20px;
    font-size: 1px;
    border-radius: 50%;
    background-color: #c2c7ca;
    margin: 0 auto;
    line-height: 30px;
    color: #c2c7ca;
    font-weight: bold;
    outline: var(--background-color) 3px solid;
    transition: all 0.1s;
}

.timeline__step.active .timeline__circle,
.timeline__step.completed .timeline__circle {
    background: linear-gradient(271deg, #4925C1 1.64%, #7953E9 102.71%);
    width: 30px;
    height: 30px;
    color:white;
    font-size: 12px;
}

.timeline__divider {
    height: 2px;
    background-color: #ccc;
    position: absolute;
    top: 25%;
    left: 10%;
    right: -80%;
    width: 82%;
}

    .timeline__divider.completed {
        background-color: #0e6325;
    }

.timeline__label {
    margin-top: 8px;
    font-size: 0.875rem;
    color: transparent;
}

.timeline__step.active .timeline__label,
.timeline__step.completed .timeline__label {
    color: #4B27C2;
    font-weight: bold;
}

/* Form Section Visibility */
.form-section {
    display: none;
}

    .form-section.active,
    .form-section:not(.hidden) {
        display: block;
    }

.hidden {
    display: none;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

.btn-primary {
    background-color: #0e6325;
    color: #fff;
    border: none;
}

.btn-secondary {
    background-color: #ccc;
    color: #333;
    border: none;
}

.btn-success {
    background-color: #28a745;
    color: #fff;
    border: none;
}

.btn:hover {
    opacity: 0.9;
}

/* Combined Form Fields Row */
.form__field--row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form__field__child {
    flex: 1;
    min-width: 200px;
}

/* Radio Group Styling */
.radio-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: transparent solid 2px;
    transition: all 0.5s;
}

    .radio-option i {
        font-size: 1.2rem;
        color: var(--dark-color);
    }
    .radio-option input[type="radio"]:checked {
        fill: #4925c1;
        border: #4925c1 solid 2px;
    }
/* Input and Select Fields */
.form__field__input,
.form__field__select {
    background: none;
    border: none;
    border-radius: 16px;
    background: var(--Bg, linear-gradient(180deg, #fff 0%, #f8f6ff 100%));
    box-shadow: 0px 0px 10px 0px rgba(172, 153, 226, 0.1);
    padding: 1rem;
    font-size: 1rem;
    color: var(--dark-color);
    outline: none;
    width: 100%;
}

/* Label Styling */
.form__field label {
    font-size: 0.875rem;
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

/* Button Styling */
.form__field__button {
    height: 45.727px;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--light-color);
    padding-inline: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    width: 100%;
}

    .form__field__button.green-gradient {
        background: linear-gradient(136deg, #759979 0%, #0e6325 101.74%);
    }

    .form__field__button:hover {
        opacity: 0.9;
    }

/* Responsive Adjustments */
@media (min-width: 640px) {
    .timeline::before {
        left: 10%;
        right: 10%;
    }
}

/* Fixed Navigation Buttons at Bottom */
.fixed-bottom {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    display: flex;
    justify-content: space-between;
 
    padding: 10px 20px;
 
    border-radius: 10px;
    z-index: 1000;
}

/* Navigation Button Styles */
.navigation-button {
    flex: 1;
    margin: 0 5px;
}

/* Back Button Specific Style */
.back-button {
    background: linear-gradient(136deg, #e74c3c 0%, #c0392b 101.74%);
}

    .back-button:hover {
        opacity: 0.9;
    }

/* Next and Submit Button Specific Styles */
.next-button,
.submit-button {
    /* Inherit styles from Button component */
}

/* Ensure buttons stack on smaller screens */
@media (max-width: 600px) {
 
    .navigation-button {
        margin: 5px 0;
    }
}


.phone-number-input {
    display: flex;
    align-items: center;
}

.country-code {
    color: #6c757d;
    background: none;
    border: none;
    border-radius: 0.25rem 0 0.25rem 0;
    background: var(--Bg, linear-gradient(180deg, #fff 0%, #f8f6ff 100%));
    box-shadow: 0px 0px 10px 0px rgba(172, 153, 226, 0.1);
    padding: 1rem;
    font-size: 1rem;
    max-height: 55.98px;
}

.phone-number-input .form__field__input {
    flex: 1;
    border-radius: 0 0.25rem 0.25rem 0;
}

/* Add keyframes for animations */
@-webkit-keyframes slide-up {
    from {
        -webkit-transform: translateY(100%);
                transform: translateY(100%);
    }
    to {
        -webkit-transform: translateY(0);
                transform: translateY(0);
    }
}

@keyframes slide-up {
    from {
        -webkit-transform: translateY(100%);
                transform: translateY(100%);
    }
    to {
        -webkit-transform: translateY(0);
                transform: translateY(0);
    }
}

/* Optional Label Style */
.optional-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: normal;
    margin-left: 0.5rem;
    padding: 0.1rem 0.5rem;
    border-radius: 0.25rem;
    background-color: #f3f4f6;
    display: inline-block;
    vertical-align: middle;
    text-transform: lowercase;
    letter-spacing: 0.025em;
}

/* Message Input Container Styles */
.message-input-container {
    background: var(--Bg, linear-gradient(180deg, #FFF 0%, #F8F6FF 100%));
    box-shadow: 0px 0px 10px 0px rgba(172, 153, 226, 0.1);
    border-radius: 16px;
    padding: 1rem;
    position: relative;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.message-input {
    width: 100%;
    /* min-height: 60px; */
    /* max-height: 200px; */
    padding: 0.5rem 0;
    border: none;
    background: transparent;
    resize: none;
    font-size: 0.9rem;
    color: var(--dark-color);
    outline: none;
    font-family: inherit;
}

.message-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(172, 153, 226, 0.1);
}

.message-attachments {
    position: relative;
    display: flex;
    align-items: center;
}

.input-file {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.attachment-button {
    background: transparent;
    border: none;
    padding: 0.5rem;
    color: var(--neutral-color);
    cursor: pointer;
    transition: color 0.2s ease;
}

.attachment-button:hover {
    color: var(--dark-color);
}

.send-button {
    background: linear-gradient(90deg, #8B78FF 0%, #5850EC 100%);
    border: none;
    padding: 0.25rem 0.5rem;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.send-button:hover:not(.disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}

.send-button.disabled {
    background: #e0e0e0;
    cursor: not-allowed;
    opacity: 0.7;
}

.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}