.contact {
    padding: 32px;
    background: #fff;
    border-radius: 20px;
}
.contact-modal-container {
    position: relative;
    background: #fff;
    width: 100%;
    border-radius: 20px;
}

.contact-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 10;
    background: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-modal-close:hover {
    background: #e2e8f0;
}

.contact-modal-close img {
    width: 20px;
    height: 20px;
}

.contact-form {
    background: #f8fafc;
    border-radius: 24px;
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: grid;
    gap: 18px;
    width: 100%;
    max-width: 736px;
    height: auto;
    margin: 0 auto;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field .error {
    color: #ff4d4f;
    font-size: 12px;
    display: flex;
    justify-content: flex-end;
    padding-right: 10px;
}

.field-error {
    border-color: #ff4d4f !important;
}

.field label {
    font-size: 0.85rem;
    color: var(--ink-500);
}

.field select {
    appearance: none;
    background: #fff;
    background-image: url("/img/web_v2/home/ArrowDown.svg");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 12px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 12px 14px;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--ink-500);
    height: 60px;
}

.field input,
.field textarea {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 12px 14px;
    font-family: inherit;
    height: 60px;
}

.field textarea#message {
    height: 160px;
}

.field textarea {
    min-height: 120px;
    resize: vertical;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.contact__image {
    width: 100%;
    max-width: 704px;
    aspect-ratio: 704 / 488;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0 auto;
}
.section-heading-left-contact {
    text-align: left;
    display: grid;
    gap: 16px;
    margin-bottom: 28px;
}
.section-heading-left-contact h2 {
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    margin: 0;
}
.section-heading-left-contact p {
    max-width: 473px;
    color: inherit;
    font-size: 16px;
}

@media (min-width: 481px) and (max-width: 1024px) {
    .contact__panel {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 32px;
    }

    .section-heading-left-contact {
        text-align: left;
        margin-bottom: 32px;
    }

    .modal-lg{
        --bs-modal-width: 800px;
    }
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: min(800px, 90%);
    }
}

@media (max-width: 480px) {
    .contact {
        padding: 24px 16px;
    }

    .contact-modal-close {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }

    .contact-form {
        padding: 20px;
    }

    .field-row {
        grid-template-columns: 1fr;
    }
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.6s linear infinite;
  margin-right: 6px;
}

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

.contact-error,
.contact-success {
  display: none;
  padding: 12px 16px;
  margin: 12px 0;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid transparent;
  width: 100%;
}

.contact-error {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}

.contact-success {
  color: #0f5132;
  background-color: #d1e7dd;
  border-color: #badbcc;
}

.primary-btn#google-map .btn-text {
  display: flex;
  align-items: center;
  gap: 8px;
}
