﻿/* Overlay - skrytý, popup-bg už funguje jako overlay */
.interested-modal__overlay {
  display: none;
}

/* Hlavní kontejner - bude uvnitř .popup */
.interested-modal {
  position: relative;
  width: 100%;
  max-width: 866px;
}

/* Vnitřní obsah */
.interested-modal__inner {
  background: #fff;
  border-radius: 12px;
  padding: 76px 76px 48px 76px;
  position: relative;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.interested-modal__header {
  padding-bottom: 32px;
  text-align: left;
  position: relative;
  padding-top: 20px;
}

.interested-modal__title-wrapper {
  position: relative;
}

.interested-modal__title {
  color: #1d1d1f;
  font-family: var(--font-body-family);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.16667;
  letter-spacing: 0.009em;
  margin: 0;
}

.interested-modal__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

  .interested-modal__success img {
    width: 64px;
    height: 64px;
  }

.interested-modal__close {
  position: absolute;
  right: 20px;
  top: 20px;
  background: #f5f5f7;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}

  .interested-modal__close:hover {
    background: #e8e8ed;
  }

.interested-modal__close-icon svg {
  width: 20px;
  height: 20px;
  fill: #1d1d1f;
}

.interested-modal__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  margin-bottom: 0;
}

.interested-modal__text {
  color: #1d1d1f;
  font-family: var(--font-body-family), sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  margin: 0 0 16px 0;
}

.interested-modal__input {
  border-radius: 8px;
  border: 1px solid #d2d2d7;
  color: #1d1d1f;
  font-family: var(--font-body-family), sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  padding: 12px 16px;
  width: 100%;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 12px;
}

  .interested-modal__input::placeholder {
    color: #86868b;
  }

  .interested-modal__input:focus {
    outline: none;
    border-color: #0071e3;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
  }

  .interested-modal__input.error {
    border-color: #ff3b30;
  }

    .interested-modal__input.error:focus {
      box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.1);
    }

.interested-modal__error {
  color: #ff3b30;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.42859;
  letter-spacing: -0.016em;
  min-height: 0;
  margin-bottom: 12px;
}

  .interested-modal__error span {
    display: none;
  }

  .interested-modal__error.active span {
    display: block;
  }

/* Tlačítko submit */
.interested-modal__submit {
  background: #0071e3;
  border: none;
  border-radius: 980px; /* Výrazně zakulacené jako Apple tlačítka */
  color: #fff;
  cursor: pointer;
  font-family: var(--font-body-family), sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  padding: 14px 24px;
  width: 100%;
  transition: background 0.2s;
  margin-top: 0;
}

  .interested-modal__submit:hover:not(:disabled) {
    background: #0077ed;
  }

  .interested-modal__submit:active:not(:disabled) {
    background: #006edb;
  }

  .interested-modal__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }

.interested-modal__submit-text {
  text-decoration: none;
}

/* Utility classes */
.screenreader {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.hide {
  display: none !important;
}

.succes-title {
  display: flex;
  justify-content: center;
  align-items: center;
}
  .succes-title h3 {
    font-size: 22px;
  }
.form-success p {
  font-size: 16px;
}
.form-success {
  padding: 76px 76px 48px 76px;
}

@media screen and (max-width: 1025px) {
  .interested-modal {
    max-width: 690px;
  }

  .interested-modal__title {
    text-align: center;
    font-size: 22px;
  }
}

@media screen and (max-width: 768px) {
  .interested-modal__inner {
    padding: 64px 29px 40px 29px; /* Upravený padding pro mobil */
  }

  .interested-modal__close {
    right: 16px;
    top: 16px;
  }

  .interested-modal__title {
    font-size: 20px;
  }

  .interested-modal__text {
    font-size: 15px;
  }

  .interested-modal__input {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .interested-modal__submit {
    font-size: 16px;
  }
}

/* Hlavní kontejner - full width na desktopu, flex na mobilech */
.interested-popup .popup {
  width: 100%;
  max-width: 866px;
}

/* Desktop breakpoint - full width container */
@media screen and (min-width: 1025px) {
  .interested-popup .popup {
    width: 866px;
  }
}

/* Tablet - flex width */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .interested-popup .popup {
    width: 90%;
    max-width: 690px;
  }
}

/* Mobile - flex width podle viewportu */
@media screen and (max-width: 767px) {
  .interested-popup .popup {
    width: 95%;
    max-width: 100%;
  }
}
