/**
 * Contact Popup Modal Styles
 * Converted from Tailwind CSS to standard CSS
 */

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

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

/* Modal Container */
.popup-contact-new .input-wrapper{
  cursor: text;
}

.popup-contact-new .input-wrapper:has(input.error){
  --tw-border-opacity: 1;
  border-color: rgb(246 96 66 / var(--tw-border-opacity));
  background: linear-gradient(0deg, rgba(246,96,66,0.1), rgba(246,96,66,0.1));
}

.popup-contact-new .submit-btn .loader{
  box-sizing: border-box;
  height: 1.25rem;
  width: 1.25rem;
  border-radius: 9999px;
  border-width: 2px;
  border-style: solid;
  --tw-border-opacity: 1;
  border-color: rgb(255 255 255 / var(--tw-border-opacity));
  border-bottom-color: #FFFFFF4D;
}

@media (min-width: 768px){
  .popup-contact-new .submit-btn .loader{
    height: 22px;
    width: 22px;
  }
}

.popup-contact-new .submit-btn .loader {
  animation: rotation 1s linear infinite;
}

.popup-contact-new {
    position: fixed;
    inset: 0;
    z-index: 1021;
    visibility: hidden;
    opacity: 0;
    transition: opacity 500ms ease-in-out;
    transform: scale(0);
}

.popup-contact-new.visible {
    visibility: visible;
    opacity: 1;
    transform: scale(1);
}

/* Background Overlay */
.popup-contact-new__wrap {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 500ms ease-in-out;
    transform: translateZ(0);
    opacity: 0;
}

.popup-contact-new__wrap.opacity-100 {
    opacity: 1;
}

/* Modal Inner Container */
.popup-contact-new__wrap__inner {
    position: relative;
    background-color: #ffffff;
    border-radius: 14px 0 14px 14px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 343px;
    width: 100%;
    height: 100%;
    max-height: 494px;
}

@media (min-width: 768px) {
    .popup-contact-new__wrap__inner {
        border-radius: 20px 0 20px 20px;
        max-width: 623px;
        max-height: 558px;
    }
}

@media (min-width: 1024px) {
    .popup-contact-new__wrap__inner {
        max-width: 687px;
        max-height: 562px;
    }
}

@media (min-width: 1440px) {
    .popup-contact-new__wrap__inner {
        max-height: 578px;
    }
}

@media (min-width: 1600px) {
    .popup-contact-new__wrap__inner {
        max-width: 869px;
        max-height: 590px;
    }
}

/* Modal Content */
.popup-contact-new__content {
    background-color: #ffffff;
    border-radius: 20px 0 20px 20px;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    justify-content: flex-start;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .popup-contact-new__content {
        padding: 32px;
        gap: 32px;
    }
}

@media (min-width: 1024px) {
    .popup-contact-new__content {
        padding: 40px;
    }
}

/* Title */
.popup-contact-new__title {
    color: #000000;
    text-align: left;
    font-family: 'TWK Everett', sans-serif;
    font-size: 24px;
    letter-spacing: -0.05em;
    line-height: 1;
    font-weight: 700;
    position: relative;
    align-self: stretch;
}

@media (min-width: 768px) {
    .popup-contact-new__title {
        font-size: 28px;
    }
}

@media (min-width: 1024px) {
    .popup-contact-new__title {
        font-size: 32px;
    }
}

@media (min-width: 1440px) {
    .popup-contact-new__title {
        font-size: 36px;
    }
}

@media (min-width: 1600px) {
    .popup-contact-new__title {
        font-size: 48px;
    }
}

/* Success Message */
.success-message {
    width: 100%;
}

.success-message.hidden {
    display: none;
}

/* Contact Form */
.contact-form-new {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    justify-content: flex-start;
    align-self: stretch;
    flex-shrink: 0;
    position: relative;
}

/* Field Container */
.contact-form-new .field {
    display: flex;
    flex-direction: column;
    gap: 7.5px;
    align-items: flex-start;
    justify-content: flex-start;
    align-self: stretch;
    flex-shrink: 0;
    position: relative;
    margin-bottom: 16px;
}

@media (min-width: 1440px) {
    .contact-form-new .field {
        gap: 6px;
    }
}

.contact-form-new .field.message-field {
    height: 140px;
    margin-bottom: 20px;
}

/* Labels */
.contact-form-new .field label {
    display: flex;
    flex-direction: row;
    gap: 0;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.contact-form-new .field label span:first-child {
    color: #191919;
    text-align: left;
    font-family: 'Inter', sans-serif;
    line-height: 1.3;
    font-weight: 700;
    position: relative;
    font-size: 14px;
}

@media (min-width: 1440px) {
    .contact-form-new .field label span:first-child {
        font-size: 16px;
    }
}

.contact-form-new .field label span:last-child {
    color: #191919;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    position: relative;
}

/* Input Wrapper */
.contact-form-new .input-wrapper {
    background-color: #f7f8fa;
    border-radius: 8px;
    border: 1px solid #dfe1e8;
    padding: 15px 16px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
    align-self: stretch;
    flex-shrink: 0;
    height: 44px;
    position: relative;
    transition: all 300ms;
}

@media (min-width: 768px) {
    .contact-form-new .input-wrapper {
        height: 48px;
    }
}

@media (min-width: 1440px) {
    .contact-form-new .input-wrapper {
        padding: 16px;
        height: 54px;
    }
}

.contact-form-new .input-wrapper:hover {
    background: linear-gradient(0deg, rgba(24, 78, 255, 0.05), rgba(24, 78, 255, 0.05));
    border-color: rgba(24, 78, 255, 0.4);
}

.contact-form-new .input-wrapper:focus-within {
    border-color: #184EFF;
}

.contact-form-new .input-wrapper.textarea-wrapper {
    align-items: flex-start;
    flex: 1;
}

/* Input Fields */
.contact-form-new .input-wrapper input,
.contact-form-new .input-wrapper textarea {
    color: #000;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 500;
    position: relative;
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
    caret-color: #184EFF;
}

@media (min-width: 1440px) {
    .contact-form-new .input-wrapper input,
    .contact-form-new .input-wrapper textarea {
        font-size: 16px;
    }
}

.contact-form-new .input-wrapper input::placeholder,
.contact-form-new .input-wrapper textarea::placeholder {
    color: #979797;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    line-height: 1.3;
}

@media (min-width: 1440px) {
    .contact-form-new .input-wrapper input::placeholder,
    .contact-form-new .input-wrapper textarea::placeholder {
        font-size: 16px;
    }
}

.contact-form-new .input-wrapper textarea {
    resize: none;
    height: 100%;
}

/* Error Messages */
.contact-form-new .error-message {
    font-weight: 500;
    line-height: 1.3;
    font-size: 14px;
    margin-top: -2px;
    color: #ef4444;
}

.contact-form-new .error-message.hidden {
    display: none;
}

.contact-form-new .input-wrapper input.error,
.contact-form-new .input-wrapper textarea.error {
    border-color: #ef4444;
}

/* Submit Button */
.submit-btn {
    background-color: #000000;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    flex-shrink: 0;
    height: 48px;
    position: relative;
    transition: background-color 200ms, color 200ms;
    border: none;
    cursor: pointer;
    margin-top: 4px;
}

@media (min-width: 768px) {
    .submit-btn {
        height: 64px;
        margin-top: 12px;
    }
}

.submit-btn:hover {
    background-color: #1f2937;
}

.submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.submit-btn .loader {
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.submit-btn .loader.hidden {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.submit-btn .submit-text {
    background: transparent;
    border-radius: 0;
    color: #ffffff;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .submit-btn .submit-text {
        font-size: 16px;
    }
}

/* Close Button (real <button> for keyboard access) */
.popup-contact-new__close {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    position: absolute;
    right: -9px;
    top: -8px;
    cursor: pointer;
    transition: opacity 200ms;
    padding: 0;
    border: 0;
    background: transparent;
    line-height: 0;
}

.popup-contact-new__close svg {
    display: block;
    width: 100%;
    height: 100%;
}

.popup-contact-new__close:hover {
    opacity: 0.7;
}

/* Body Overflow Control */
body.overflow-hidden,
html.overflow-hidden {
    overflow: hidden;
}

/* Mobile-only line break inside error messages */
.custom-error-message-field .break-mobile {
    display: block;
}

@media (min-width: 768px) {
    .custom-error-message-field .break-mobile {
        display: none;
    }
}

.jq-toast-wrap.top-right{
  top: 1rem;
  right: 1rem;
  width: calc(100% - 32px);
  max-width: 535px;
}

@media (min-width: 768px){
  .jq-toast-wrap.top-right{
    width: 100%;
  }
}

.jq-toast-wrap.top-right .jq-toast-single{
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 1rem;
  border-radius: 5px;
  padding: 1rem;
  font-family: Inter;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

@media (min-width: 768px){
  .jq-toast-wrap.top-right .jq-toast-single{
    display: block;
    padding: 1.25rem;
    line-height: 17px;
  }
}

.jq-toast-wrap.top-right .jq-toast-single .close-jq-toast-single{
  position: relative;
  top: 0.125rem;
  right: 0px;
  --tw-translate-y: 0px;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  font-size: 22px;
  font-weight: 100;
}

@media (min-width: 768px){
  .jq-toast-wrap.top-right .jq-toast-single .close-jq-toast-single{
    position: absolute;
    top: 50%;
    right: 1.25rem;
    --tw-translate-y: -50%;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
    font-size: 20px;
  }
}