/* Contact page styles */

/* Company Contact Info Widget */
.cityland-contact-info {
  margin: 0;
  padding: 0;
  width: 100%;
}

.contact-info-container {
  display: flex;
  flex-wrap: wrap;
  gap: 46px;
  align-items: stretch;
}

.map-container {
  flex: 1;
  min-width: 300px;
}

@media (max-width: 768px) {
  .map-container {
    width: 100%;
  }
}

.map-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
}

.company-card {
  background-color: white;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 12px;
  max-width: 300px;
}

.company-info {
  flex: 1;
}

.contact-info-container .company-info h4 {
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 6px 0;
}

/* .company-info p {
  font-size: 11px;
  margin: 0 0 8px 0;
} */

.rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

.rating-score {
  font-weight: 700;
  font-size: 12px;
}

.rating-stars {
  display: flex;
}

.rating-stars .half {
  position: relative;
}

.rating-stars .half:before {
  content: "\f089";
  position: absolute;
  left: 0;
  top: 0;
}

.rating-count {
  font-size: 11px;
}

.view-map {
  font-size: 11px;
  text-decoration: none;
}

.view-map:hover {
  text-decoration: underline;
}

.company-logo {
  width: 80px;
  display: flex;
  align-items: center;
}

.company-logo img {
  max-width: 100%;
  max-height: 60px;
}

.contact-details {
  flex: 1;
  min-width: 300px;
}

.contact-info-container .company-name {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px 0;
}

.divider {
  height: 1px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e6e6e6;
}

.office-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px 0;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.contact-item i {
  margin-top: 3px;
}

.contact-text {
  font-size: 16px;
  line-height: 1.5;
  color: #000000;
}

.contact-text a {
  color: #000000;
}

.contact-text a:hover {
  color: var(--color-brown-600);
  transition: color 0.3s ease-in-out;
}

/* Branch Office Sections */
.contact-info-container .branch-office-section {
  margin-top: 24px;
}

.contact-info-container .branch-title {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px 0;
}

.contact-info-container .branch-office-section .divider {
  margin-bottom: 16px;
}

.contact-info-container .branch-office-section .contact-item {
  margin-top: 0;
}

@media (max-width: 768px) {
  .contact-info-container .branch-office-section {
    margin-top: 20px;
  }

  .contact-info-container .branch-title {
    font-size: 14px;
  }
}

/* Contact Form Widget */
.cityland-contact-form {
  width: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.6);
}

.contact-form-container {
  position: relative;
  display: flex;
  gap: 226px;
  padding: 68px 120px;
  width: 100%;
  justify-content: space-between;
}

.background-image-container {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.background-image {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100% !important;
}

.overlay-color {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.heading-container {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  padding: 56px 0;
}

.subheading-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 28px;
}

.contact-heading {
  color: var(--color-brown-600);
  transform: translateY(30px);
}

.contact-subheading {
  margin: 0;
  padding-left: 80px;
}

.form-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 320px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0px;
  padding: 32px;
  background-color: white;
  width: 100%;
  max-width: 588px;
}

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

.form-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.required {
  color: #e31c23;
}

.input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #b8b8b8;
  padding: 12px 16px;
  background-color: white;
}

.textarea-wrapper {
  min-height: none;
}

.form-input {
  width: 100%;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  border: none;
  background: transparent;
  outline: none;
  resize: none;
  vertical-align: middle;
}

.form-input::placeholder {
  color: #b8b8b8;
}

.submit-button {
  align-self: stretch;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 32px;
  border: none;
  border-radius: 100px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.3s ease-in-out;
  background-color: var(--color-brown-300);
}

.submit-button:hover {
  opacity: 0.9;
}

/* Form messages */
.form-success,
.form-error {
  margin-top: 16px;
  padding: 12px;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
}

.form-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Loading state */
.submit-button.loading {
  position: relative;
  color: transparent;
}

.submit-button.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-top: -10px;
  margin-left: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .contact-form-container {
    flex-direction: column;
    gap: 0px;
    padding: 48px 80px;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .contact-info-container {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .contact-form-container {
    flex-direction: column;
    gap: 40px;
    padding: 48px 30px;
  }

  .heading-container {
    padding: 30px 0;
  }

  .subheading-wrapper {
    justify-content: center;
    padding-right: 0;
  }
}
