/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(to right, #ffffff, #000000);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #111;
}

/* Header */
.header-minimal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  padding: 10px 40px;
  background: linear-gradient(to right, #ffffff, #000000);
  border-bottom: 1px solid #ddd;
  position: relative;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo {
  height: 40px;
  margin-right: 10px;
}

.back-label {
  font-size: 1.2rem;
  color: #fff;
  font-weight: 500;
}

/* Language selector in header */
.lang-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-wrapper label {
  font-size: 0.85rem;
  color: #ffffff;
  font-weight: 500;
}

.lang-wrapper select {
  padding: 6px 10px;
  font-size: 0.9rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #fff;
  color: #333;
  cursor: pointer;
}

/* Layout */
.contact-wrapper {
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 2rem;
  gap: 2rem;
  flex-direction: row;
  flex-wrap: nowrap;
  height: calc(100vh - 60px);
  box-sizing: border-box;
}

.form-section {
  flex: 1 1 60%;
  padding: 40px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-section h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.form-section p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.name-fields {
  display: flex;
  gap: 1rem;
  flex-direction: row;
}

@media (max-width: 600px) {
  .name-fields {
    flex-direction: column;
  }
}

.name-fields input {
  flex: 1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  background-color: #22c55e;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #16a34a;
}

/* Map Section */
.map-section {
  flex: 1 1 40%;
  background-color: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: 8px;
  height: auto; /* removed fixed height */
}

.map-frame {
  width: 100%;
  height: 100%;
  min-height: 100%; /* take full height of map-section */
  border: none;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-wrapper {
    flex-direction: column;
    height: auto;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .form-section,
  .map-section {
    flex: none;
    width: 100%;
    max-width: 100%;
  }

  .map-section {
    height: auto;
  }

  .map-frame {
    height: 250px;
  }

  .name-fields {
    flex-direction: column;
  }
}

@media (max-width: 900px) {
  .form-section {
    width: 100%;
    padding: 1.5rem;
  }
}
