/* KONTAKT */

.contact-photo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
  margin-right: 40px;
}

.contact-photo img {
  display: block;
  width: auto;
  height: 420px;
  border-radius: 5%;
}

@media screen and (max-width: 1500px) {
  .contact-photo img {
    height: 300px;
  }
}

.contact-container {
  display: flex;
  position: relative;
  margin-top: 70px;
  align-items: center;
  justify-content: center;
  margin-bottom: 100px;
}

.info {
  padding: 7px;
  padding-right: 0;
  margin-left: 30px;
  width: 250px;

  display: flex; /* enable flex layout */
  flex-direction: column; /* stack children vertically */
  justify-content: space-between; /* top items at top, bottom items at bottom */
  height: 100%; /* make it fill the parent container */
}

@media screen and (max-width: 1500px) {
  .info {
    width: 220px;
  }
}

.info p {
  font-size: 18px;
  margin: 6px 0;
  transition: font-size 0.3s ease, color 0.3s ease;
  display: inline-block;
  transform-origin: center;
}

.info p:hover {
  font-size: 20px; /* plynulé zvětšení */
  color: var(--my-color); /* tmavší barva */
}

@media screen and (max-width: 1500px) {
  .info p {
    font-size: 16px;
  }
}

@media screen and (max-width: 1000px) {
  .info p:hover {
    font-size: 30px;
  }
}

.click-to-copy {
  position: relative; /* pro pseudo-element */
  font-size: 18px;
  text-decoration: none;
  transition: font-size 0.3s ease, color 0.3s ease;
  cursor: pointer; /* ukazatel při hover */
  text-decoration: underline; /* podtržení */
  text-underline-offset: 8px; /* odsazení od textu */
}

.click-to-copy::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px; /* vzdálenost pod textem */
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: currentColor; /* stejná barva jako text */
  transition: width 0.3s ease;
}

.click-to-copy:hover {
  font-size: 20px; /* plynulé zvětšení textu */
  color: #000000; /* tmavší barva při hover */
}

.click-to-copy:hover::after {
  width: 100%; /* rozvinutí linky pod textem */
}

.phone-link {
  color: inherit;
  text-decoration: none;
  position: relative; /* potřebné pro ::after */
  transition: transform 0.3s ease;
  text-decoration: underline; /* podtržení */
  text-underline-offset: 4px; /* odsazení od textu */
}

.phone-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px; /* vzdálenost pod textem */
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: currentColor; /* stejná barva jako text */
  transition: width 0.3s ease;
}

.phone-link:hover {
  transform: scale(1.1);
}

.phone-link:hover::after {
  width: 100%;
}

.fb-sites {
  position: relative; /* základ pro ::after */
  display: inline-block; /* aby linka seděla přímo pod textem */
  transition: transform 0.3s ease;
  margin-bottom: 5px;
}

.fb-sites::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0px; /* zmenšená vzdálenost od textu */
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--my-color);
  transition: width 0.3s ease;
}

.fb-sites:hover {
  transform: scale(1.05);
}

.fb-sites:hover::after {
  width: 100%; /* linka se roztáhne */
}

.fb-sites img {
  filter: brightness(0) saturate(100%) invert(39%) sepia(51%) saturate(5325%) hue-rotate(203deg) brightness(99%) contrast(92%);
}

#toast {
  visibility: hidden;
  min-width: 120px;
  background-color: var(--my-color);
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 8px;
  position: fixed;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.5s, visibility 0.5s;
}

#toast.show {
  visibility: visible;
  opacity: 1;
}

.map {
  position: relative;
  display: flex;
  justify-content: center;
  border-radius: 5%;
  /* margin-top: 80px; */
  margin-left: 100px;
}

.map iframe {
  border-radius: 5%; /* zaoblení rohů */
  height: 350px;
  width: 420px;
}

@media screen and (max-width: 1500px) {
  .map iframe {
    height: 300px;
    width: 360px;
  }
}

.second-info {
  margin-top: 40px;
  margin-bottom: 40px;
}

@media screen and (max-width: 1000px) {
  .second-info {
    margin-top: 30px;
    margin-bottom: 30px;
  }
}

@media (max-width: 1000px) {
  .contact-container {
    flex-direction: row; /* Keep items in a row on mobile */
    margin-top: 50px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    flex-wrap: wrap; /* Allow items to wrap if needed */
    justify-content: center;
  }

  .contact-photo img {
    height: 450px;
    width: auto;
  }

  .info {
    padding: 7px;
    padding-right: 0;
    margin-left: 20px;
    width: 320px;

    display: flex; /* enable flex layout */
    flex-direction: column; /* stack children vertically */
    justify-content: space-between; /* top items at top, bottom items at bottom */
    height: 100%; /* make it fill the parent container */
  }

  .info p {
    font-size: 24px;
  }

  .top-info {
    display: flex;
    flex-direction: column; /* stack items vertically */
    gap: 6px; /* space between items */
  }

  .fb-sites-wrapper {
    display: flex;
    flex-direction: column; /* stack fb links vertically */
    gap: 10px; /* space between fb links */
  }

  .fb-sites {
    position: relative; /* základ pro ::after */
    display: inline-block; /* aby linka seděla přímo pod textem */
    transition: transform 0.3s ease;
  }

  .map {
    margin: 50px 0 100px 0;
    width: 100%;
  }

  .map iframe {
    width: 650px; /* plná šířka s malým okrajem */
    height: 500px; /* upravená výška pro lepší poměr stran */
  }
}

/* FORMULÁŘ */
/* general styling */
:root {
  --surface-0: hsl(229, 41%, 5%);
  --surface-1: hsl(229, 25%, 12%);
  --surface-2: hsl(234, 26%, 16%);
  --text-1: hsl(229, 12%, 100%);
  --text-2: hsl(229, 12%, 66%);
  --required: hsl(321, 32%, 56%);
  --accent: hsl(241, 83%, 53%);
  --border: 1px solid hsl(229, 22%, 19%);
}

.contact-form {
  display: grid;
  gap: 1rem;

  background-color: var(--surface-1);
  /* background-color: rgba(10, 51, 104, 0.39); */

  /* (25,119,241) */
  padding: 3rem;
  border-radius: 24px;
  width: 60vw;
  margin-inline: auto;
  color: var(--text-1);
}

@media screen and (max-width: 1500px) {
  .contact-form {
    padding: 2.3rem;
  }
}

@media screen and (max-width: 1000px) {
  .contact-form {
    width: 90vw;
    padding: 2.9rem;
  }
}

h1 {
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
  text-align: center;
}

@media screen and (max-width: 1500px) {
  h1 {
    font-size: 38px;
  }
}

@media screen and (max-width: 1000px) {
  h1 {
    font-size: 52px;
  }
}

form {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

input,
.submit-button,
select,
textarea {
  font-size: 14px;
}

textarea {
  width: 100%;
  min-height: 180px; /* nebo více podle potřeby */
  padding: 1ex 2ex;
  border-radius: 10px;
  border: var(--border);
  background: var(--surface-2);
  color: var(--text-1);
  resize: vertical; /* uživatel může měnit výšku */
}

@media screen and (max-width: 1000px) {
  textarea {
    font-size: 28px;
    min-height: 250px;
  }
}

.form-group {
  display: grid;
  gap: 0.5cap;
  margin-bottom: 5px;
}

@media screen and (max-width: 1000px) {
  .form-group {
    gap: 18px;
    margin-bottom: 30px;
  }
}

label {
  /* text-transform: uppercase; */
  font-size: 1rem;
  margin-bottom: 5px;

  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

@media screen and (max-width: 1000px) {
  label {
    font-size: 28px;
  }
}

input {
  background: var(--surface-2);
  color: var(--text-1);
  border: var(--border);
  border-radius: 10px;
  padding: 1ex 2ex;
  accent-color: var(--accent);
}

input:not([type="checkbox"], [type="radio"]) {
  width: 36%;
}

@media screen and (max-width: 1000px) {
  input:not([type="checkbox"], [type="radio"]) {
    width: 100%;
    font-size: 28px;
    padding: 1.5ex 2ex;
  }
}

.form-group:has(.fine-print) {
  grid-column: 1 / -1;

  display: flex;
  gap: 0.5ch;
}

.contact-form .submit-button {
  justify-self: start;
}

* {
  box-sizing: border-box;
  margin: 0;
}

a {
  color: hsl(from var(--accent) h s 80%);
}

.fine-print {
  font-size: 0.925rem;
  text-transform: revert;
  line-height: 1.4;
}

.submit-button {
  cursor: pointer;
  background-color: var(--accent);
  color: var(--text-1);
  padding: 1em 1.5em;
  border: 0;
  border-radius: 16px;

  &:hover,
  &:focus-visible {
    background-color: hsl(from var(--accent) h s 30%);
  }
}

@media screen and (max-width: 1000px) {
  .submit-button {
    font-size: 21px;
  }
}
