@import url("style-header.css");
@import url("style-footer.css");

body {
  font-family: "Poppins", sans-serif;
  background-color: #0e0e0f;
  color: #ffffff;
  margin: 0;
  padding: 0;
  background-image: radial-gradient(
      ellipse 7000px 2700px at 35% 10%,
      rgba(255, 255, 255, 0.08) 5%,
      transparent 10%
    ),
    radial-gradient(
      ellipse at 90% 50%,
      rgba(255, 255, 255, 0.08) 2%,
      transparent 50%
    );
  line-height: 1.6;
  box-sizing: border-box;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 80px auto;
  padding: 20px;
}

.contact-wrapper {
  background-color: #ffffff1a;
  border-radius: 20px;
  padding: 30px;
  border: 1px solid #ffffff4d;
  box-sizing: border-box;
}

.contact-wrapper h1 {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #fff;
}

.contact-wrapper h1 .highlight {
  position: relative;
  display: inline-block;
}

.contact-wrapper h1 .highlight::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.375rem;
  background-color: #ff250f;
  z-index: -1;
  border-radius: 0.25rem;
}

.contact-box {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
}

.contact-box::before {
  display: none;
}

.contact-form-container,
.contact-info-container {
  flex: 1;
  z-index: 1;
  width: 100%;
}

.section-title {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #fff;
}

.form-top {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.form-group label {
  color: #ccc;
  font-size: 0.8rem;
  margin-bottom: 6px;
}

input,
textarea {
  background-color: #1b1b1c;
  color: #fff;
  border: 1px solid #444;
  border-radius: 16px;
  padding: 12px;
  font-size: 0.9rem;
  width: 100%;
  box-sizing: border-box;
}

input::placeholder,
textarea::placeholder {
  color: #888;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  background-color: #ff250f;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s ease;
  margin-top: 10px;
}

.submit-btn:hover {
  background-color: #e33a3a;
}

.contact-info-container h2 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
}

.contact-info {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #cccccc;
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 8px;
}

.contact-info a {
  color: #cccccc;
  text-decoration: underline;
  transition: color 0.3s;
}

.contact-info a:hover {
  color: #ffffff;
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  height: 200px;
  margin-top: 20px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Media queries dla tabletów i większych ekranów */
@media (min-width: 768px) {
  .container {
    padding: 40px 20px;
    margin: 100px auto;
  }

  .contact-wrapper {
    padding: 40px;
  }

  .contact-wrapper h1 {
    font-size: 2.5rem;
  }

  .form-top {
    flex-direction: row;
    gap: 20px;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .submit-btn {
    width: auto;
    align-self: flex-end;
  }
}

/* Media queries dla desktopów */
@media (min-width: 992px) {
  .contact-box {
    flex-direction: row;
  }

  .contact-box::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-1px);
    width: 2px;
    background-color: #ffffff33;
    z-index: 0;
    display: block;
  }

  .contact-wrapper h1 {
    font-size: 3rem;
  }

  .section-title {
    font-size: 1rem;
  }

  input,
  textarea {
    font-size: 0.9rem;
  }

  .contact-info-container h2 {
    font-size: 1.5rem;
  }

  .contact-info {
    font-size: 1rem;
  }

  .map-container {
    height: 250px;
  }
}

/* Telefony poniżej 440px */
@media (max-width: 440px) {
  .contact-wrapper {
    padding: 20px;
  }

  .contact-wrapper h1 {
    font-size: 1.5rem;
  }

  .form-top {
    flex-direction: column;
    gap: 10px;
  }

  input,
  textarea {
    font-size: 0.85rem;
    padding: 10px;
  }

  .submit-btn {
    font-size: 0.85rem;
    padding: 10px 16px;
  }

  .contact-info-container h2 {
    font-size: 1.1rem;
  }

  .contact-info {
    font-size: 0.85rem;
  }

  .map-container {
    height: 180px;
  }
}

/* Telefony poniżej 400px */
@media (max-width: 400px) {
  .container {
    width: 95%;
    padding: 10px;
  }

  .contact-wrapper h1 {
    font-size: 1.3rem;
  }

  .form-group label {
    font-size: 0.75rem;
  }

  input,
  textarea {
    font-size: 0.8rem;
    padding: 8px;
  }

  .submit-btn {
    font-size: 0.8rem;
    padding: 8px 14px;
  }

  .contact-info {
    font-size: 0.8rem;
  }

  .map-container {
    height: 160px;
  }
}
