/* Contacts Page Specific Styles */

/* Breadcrumbs */
.breadcrumbs {
  background-color: white;
  border-bottom: 1px solid #f3d3b4;
  padding: 1rem 0;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  color: #3c332c;
  font-size: 0.875rem;
}

.breadcrumb-item:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  color: #9ca3af;
}

.breadcrumb-link {
  color: #3c332c;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: #1e1b17;
}

.breadcrumb-item.current {
  color: #1e1b17;
  font-weight: 500;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #f3d3b4, #f9f1ea);
  padding: 4rem 0;
  text-align: center;
}

.page-header-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-title {
  font-size: 3rem;
  font-weight: 700;
  color: #1e1b17;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.page-description {
  font-size: 1.25rem;
  color: #3c332c;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Contact Information */
.contact-info {
  padding: 4rem 0;
  background-color: white;
}

.contact-grid {
  display: grid;
  gap: 4rem;
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 2rem;
}

.contact-card {
  background: white;
  border: 1px solid #f3d3b4;
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1e1b17, #f3d3b4);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.contact-card:hover::before {
  transform: scaleX(1);
}

.contact-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.contact-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, #f3d3b4, #f9f1ea);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #1e1b17;
}

.contact-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e1b17;
  margin-bottom: 0.5rem;
}

.contact-text {
  color: #3c332c;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.contact-link {
  color: #1e1b17;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  display: inline-block;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: #3c332c;
}

.contact-note {
  color: #666;
  font-size: 0.875rem;
  font-style: italic;
}

.contact-address {
  font-style: normal;
  color: #1e1b17;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.working-hours {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3d3b4;
}

.hours-row:last-child {
  border-bottom: none;
}

.hours-day {
  font-weight: 500;
  color: #3c332c;
}

.hours-time {
  color: #1e1b17;
  font-weight: 600;
}

/* Contact Form */
.contact-form-section {
  background: #f9f1ea;
  border-radius: 1rem;
  padding: 2.5rem;
  position: sticky;
  top: 2rem;
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-title {
  font-size: 2rem;
  font-weight: 600;
  color: #1e1b17;
  margin-bottom: 0.5rem;
}

.form-description {
  color: #3c332c;
  line-height: 1.6;
}

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

.form-row {
  display: grid;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 500;
  color: #1e1b17;
  font-size: 0.875rem;
}

.form-input,
.form-select,
.form-textarea {
  padding: 0.875rem 1rem;
  border: 2px solid #f3d3b4;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: white;
  font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #1e1b17;
  box-shadow: 0 0 0 3px rgba(30, 27, 23, 0.1);
}

.form-input:invalid,
.form-select:invalid,
.form-textarea:invalid {
  border-color: #ef4444;
}

.form-input:valid,
.form-select:valid,
.form-textarea:valid {
  border-color: #22c55e;
}

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

.form-error {
  color: #ef4444;
  font-size: 0.875rem;
  display: none;
}

.form-error.show {
  display: block;
}

/* Checkbox Styles */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  line-height: 1.5;
  font-size: 0.875rem;
}

.checkbox-input {
  display: none;
}

.checkbox-custom {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #f3d3b4;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.checkbox-input:checked + .checkbox-custom {
  background-color: #1e1b17;
  border-color: #1e1b17;
}

.checkbox-input:checked + .checkbox-custom::after {
  content: "✓";
  color: white;
  font-size: 0.875rem;
  font-weight: bold;
}

.privacy-link {
  color: #1e1b17;
  text-decoration: underline;
}

.privacy-link:hover {
  color: #3c332c;
}

.form-actions {
  margin-top: 1rem;
}

.form-actions .btn {
  width: 100%;
  justify-content: center;
}

/* Map Section */
.map-section {
  padding: 4rem 0;
  background-color: #f9f1ea;
}

.map-header {
  text-align: center;
  margin-bottom: 3rem;
}

.map-container {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.map-placeholder {
  background: white;
  border-radius: 1rem;
  padding: 3rem;
  text-align: center;
  border: 1px solid #f3d3b4;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-content {
  max-width: 300px;
}

.map-icon {
  color: #1e1b17;
  margin-bottom: 1rem;
}

.map-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e1b17;
  margin-bottom: 0.5rem;
}

.map-content p {
  color: #3c332c;
  margin-bottom: 1.5rem;
}

.directions {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid #f3d3b4;
}

.directions-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e1b17;
  margin-bottom: 1.5rem;
}

.directions-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.direction-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.direction-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: #f3d3b4;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e1b17;
  flex-shrink: 0;
}

.direction-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e1b17;
  margin-bottom: 0.25rem;
}

.direction-content p {
  color: #3c332c;
  line-height: 1.5;
}

/* FAQ Section */
.faq-section {
  padding: 4rem 0;
  background-color: white;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: white;
  border: 1px solid #f3d3b4;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-item[open] {
  border-color: #1e1b17;
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #1e1b17;
  font-size: 1.125rem;
  list-style: none;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background-color: #f9f1ea;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: #3c332c;
  line-height: 1.6;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Language Switcher */
.language-switcher {
  position: relative;
}

.language-btn {
  position: relative;
  gap: 0.25rem;
}

.language-code {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1e1b17;
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #f3d3b4;
  border-radius: 0.25rem;
  padding: 0.125rem 0.25rem;
  line-height: 1;
  min-width: 20px;
  text-align: center;
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: white;
  border: 1px solid #f3d3b4;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.language-dropdown[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 12px;
  width: 12px;
  height: 12px;
  background: white;
  border: 1px solid #f3d3b4;
  border-bottom: none;
  border-right: none;
  transform: rotate(45deg);
}

.language-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #f9f1ea;
}

.language-option:last-child {
  border-bottom: none;
}

.language-option:hover {
  background-color: #f9f1ea;
}

.language-option.active {
  background-color: #f3d3b4;
  font-weight: 600;
}

.language-option.active::after {
  content: "✓";
  margin-left: auto;
  color: #1e1b17;
  font-weight: bold;
}

.flag-icon {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
}

.language-name {
  flex: 1;
  color: #1e1b17;
}

.language-native {
  color: #3c332c;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Mobile Language Button */
.language-mobile-btn {
  position: relative;
}

.current-language {
  position: absolute;
  right: 1rem;
  background-color: #f3d3b4;
  color: #1e1b17;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  line-height: 1;
}

/* Language Modal for Mobile */
.language-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.language-modal.show {
  opacity: 1;
  visibility: visible;
}

.language-modal-content {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 1rem;
  max-width: 300px;
  width: 100%;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.language-modal.show .language-modal-content {
  transform: scale(1);
}

.language-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f3d3b4;
}

.language-modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e1b17;
}

.language-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.25rem;
  color: #666;
  transition: background-color 0.2s ease;
}

.language-modal-close:hover {
  background-color: #f5f5f5;
}

.language-modal-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.language-modal-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid #f3d3b4;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.language-modal-option:hover {
  background-color: #f9f1ea;
  border-color: #1e1b17;
}

.language-modal-option.active {
  background-color: #f3d3b4;
  border-color: #1e1b17;
  font-weight: 600;
}

/* Responsive Design */
@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .map-container {
    grid-template-columns: 2fr 1fr;
  }
}

@media (min-width: 768px) {
  .page-title {
    font-size: 4rem;
  }

  .contact-grid {
    grid-template-columns: 1fr 400px;
    gap: 3rem;
  }

  .contact-form-section {
    position: sticky;
    top: 2rem;
  }

  .language-mobile-btn {
    display: none;
  }
}

@media (min-width: 1024px) {
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
  }
}

@media (max-width: 640px) {
  .page-header {
    padding: 2rem 0;
  }

  .page-title {
    font-size: 2rem;
  }

  .page-description {
    font-size: 1rem;
  }

  .contact-info {
    padding: 2rem 0;
  }

  .contact-form-section {
    padding: 1.5rem;
    position: static;
  }

  .map-section {
    padding: 2rem 0;
  }

  .faq-section {
    padding: 2rem 0;
  }

  .faq-question {
    padding: 1rem;
    font-size: 1rem;
  }

  .faq-answer {
    padding: 0 1rem 1rem;
  }

  .language-switcher {
    display: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .contact-card {
    border-width: 2px;
  }

  .form-input:focus,
  .form-select:focus,
  .form-textarea:focus {
    outline: 3px solid #1e1b17;
    outline-offset: 2px;
  }

  .language-dropdown {
    border-width: 2px;
  }

  .language-option.active {
    outline: 2px solid #1e1b17;
    outline-offset: -2px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .contact-card,
  .faq-item,
  .faq-icon,
  .form-input,
  .form-select,
  .form-textarea,
  .language-dropdown,
  .language-modal,
  .language-modal-content {
    transition: none;
  }

  .faq-answer {
    animation: none;
  }

  .contact-card:hover {
    transform: none;
  }
}

/* Focus styles */
.language-btn:focus {
  outline: 2px solid #1e1b17;
  outline-offset: 2px;
}

.language-option:focus {
  outline: 2px solid #1e1b17;
  outline-offset: -2px;
  background-color: #f9f1ea;
}

/* Animation for language change */
.language-change-animation {
  animation: languageChange 0.3s ease;
}

@keyframes languageChange {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}
