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

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

/* Vnitřní obsah */
.notify-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);
}

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

.notify-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;
}

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

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

.notify-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;
}

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

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

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

.notify-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;
}

.notify-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;
}

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

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

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

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

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

.notify-modal__error span {
  display: none;
}

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

/* Buttons - více zakulacené */
.notify-modal__submit,
.notify-modal__done {
  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; /* Žádný extra margin */
}

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

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

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

/* 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;
}

  
.notify__button-text {
  text-decoration: none;
}

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

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

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

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

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

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

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

  .notify-modal__submit,
  .notify-modal__done {
    font-size: 16px;
  }
}

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

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

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

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