/* CONTACT INFO CARDS SECTION - PURE FLEXBOX */

.contact-info-section {
  padding: 4rem 1rem;
  margin-top: -5rem;
  position: relative;
  z-index: 10;
  background-color: transparent;
}

/* Container */
.contact-info-container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

/* Cards Container - PURE FLEXBOX */
.contact-cards-container {
  display: flex;
  flex-direction: column;
  align-items: stretch; /* Ovo će učiniti da sve kartice budu iste visine */
  gap: 1.5rem;
}

/* MOBILE FIRST: Jedna kolona */
.contact-card {
  background-color: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  flex: 1; /* Ovo će učiniti da sve kartice budu iste visine */
}

/* TABLET: Dve kolone (≥ 768px) */
@media (min-width: 768px) {
  .contact-cards-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .contact-card {
    width: calc(50% - 0.75rem);
    max-width: calc(50% - 0.75rem);
  }
}

/* DESKTOP: Četiri kolone (≥ 1024px) */
@media (min-width: 1024px) {
  .contact-card {
    width: calc(25% - 1.125rem);
    max-width: calc(25% - 1.125rem);
  }
}

/* Hover efekti */
.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Icon Container */
.contact-icon-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
  background-color: rgb(36, 94, 96);
  transition: transform 0.3s ease, background-color 0.3s ease;
  flex-shrink: 0; /* Sprečava smanjenje ikonice */
}

.contact-card:hover .contact-icon-container {
  transform: scale(1.1);
  background-color: rgb(29, 78, 80);
}

.contact-icon {
  height: 1.5rem;
  width: 1.5rem;
  color: white;
}

/* Card Title */
.contact-card-title {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: rgb(217, 182, 143);
  line-height: 1.4;
  flex-shrink: 0; /* Sprečava smanjenje naslova */
}

/* Contact Details */
.contact-details {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex-grow: 1; /* Ovo će zauzeti preostali prostor i izjednačiti visine */
  justify-content: center; /* Centrira sadržaj vertikalno */
}

/* Linkovi za telefon i email */
.contact-text {
  color: #4b5563;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
  text-decoration: none; /* Uklanja podvučenost za linkove */
  display: block; /* Čini da linkovi zauzimaju celu širinu */
  transition: color 0.2s ease;
}

/* Stilovi za linkove (telefon i email) */
.contact-details a.contact-text {
  color: rgb(36, 94, 96);
  font-weight: 500;
}

.contact-details a.contact-text:hover {
  color: rgb(29, 78, 80);
  text-decoration: none;
}

/* Stilovi za običan tekst (adresa i radno vreme) */
.contact-details p.contact-text {
  color: #4b5563;
}

/* Animation for cards entrance */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-card {
  animation: fadeInUp 0.6s ease-out both;
}

.contact-card:nth-child(1) {
  animation-delay: 0.1s;
}
.contact-card:nth-child(2) {
  animation-delay: 0.2s;
}
.contact-card:nth-child(3) {
  animation-delay: 0.3s;
}
.contact-card:nth-child(4) {
  animation-delay: 0.4s;
}

/* Responsive adjustments */
@media (min-width: 640px) {
  .contact-info-section {
    padding: 4rem 1.5rem;
  }

  .contact-card {
    padding: 1.75rem;
  }

  .contact-card-title {
    font-size: 1.25rem;
  }

  .contact-text {
    font-size: 0.9375rem;
  }
}

@media (min-width: 768px) {
  .contact-info-section {
    padding: 4rem 2rem;
  }

  .contact-card {
    padding: 2rem;
  }

  .contact-icon-container {
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1rem;
  }

  .contact-icon {
    height: 1.75rem;
    width: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .contact-info-section {
    padding: 4rem 2rem;
  }
}

/* Accessibility */
.contact-card:focus-within {
  outline: 2px solid rgb(36, 94, 96);
  outline-offset: 2px;
}

/* Podešavanje za mobile da sve kartice budu iste visine i na mobilnom */
@media (max-width: 767px) {
  .contact-cards-container {
    display: flex;
  }

  .contact-card {
    flex: 1 0 auto;
  }
}

/* Contact Section Styles */
.contact-section {
  padding: 5rem 1rem;
}

.contact-container {
  max-width: 80rem;
  margin: 0 auto;
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Contact Form Styles */
.contact-form-wrapper {
  flex: 1;
}

.contact-form-title,
.contact-info-title {
  font-size: 36px;
  font-family: serif;
  margin-bottom: 1.5rem;
  color: #245e60;
  font-weight: 500;
}

.contact-form-subtitle,
.contact-info-subtitle {
  color: #6b7280;
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-field {
  width: 100%;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background-color: white;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #245e60;
  box-shadow: 0 0 0 3px rgba(36, 94, 96, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.submit-button {
  width: 100%;
  padding: 1rem;
  background-color: #d9b68f;
  color: white;
  font-weight: 500;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.submit-button:hover {
  transform: scale(1.02);
  background-color: #c9a67f;
}

/* Contact Info Styles */
.contact-info-wrapper {
  flex: 1;
}

.location-card {
  margin-bottom: 2rem;
  height: 16rem;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.location-card-inner {
  width: 100%;
  height: 100%;
  /* display: flex;
  align-items: center;
  justify-content: center;
  background-color: #245e60; */
}

.location-card-content {
  text-align: center;
  color: white;
  /* padding: 1.5rem; */
}

.location-icon {
  height: 3rem;
  width: 3rem;
  margin: 0 auto 1rem auto;
  color: #d9b68f;
}

.location-city {
  font-size: 1rem;
}

.immediate-assistance {
  background-color: #245e60;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.assistance-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: white;
}

.assistance-text {
  color: white;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.call-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #d9b68f;
  color: white;
  font-weight: 500;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.call-button:hover {
  transform: scale(1.05);
  background-color: #c9a67f;
}

/* Tablet Styles */
@media (min-width: 768px) {
  .contact-content {
    flex-direction: row;
  }

  .contact-form-wrapper,
  .contact-info-wrapper {
    width: 50%;
  }

  .form-row {
    flex-direction: row;
  }

  .form-row .form-field {
    width: 50%;
  }
}

/* Desktop Styles */
@media (min-width: 1024px) {
  .contact-section {
    padding: 5rem 2rem;
  }
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .contact-section {
    padding: 3rem 1rem;
  }

  .location-card {
    height: 14rem;
  }

  .contact-form-title,
  .contact-info-title {
    font-size: 1.5rem;
  }
}

/* Animation for form elements */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-field {
  animation: fadeIn 0.5s ease-out both;
}

.form-field:nth-child(1) {
  animation-delay: 0.1s;
}
.form-field:nth-child(2) {
  animation-delay: 0.2s;
}
.form-field:nth-child(3) {
  animation-delay: 0.3s;
}
.form-field:nth-child(4) {
  animation-delay: 0.4s;
}
.form-field:nth-child(5) {
  animation-delay: 0.5s;
}
.form-field:nth-child(6) {
  animation-delay: 0.6s;
}
.submit-button {
  animation-delay: 0.7s;
}

/* Focus states for accessibility */
.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.submit-button:focus,
.call-button:focus {
  outline: 2px solid #245e60;
  outline-offset: 2px;
}
