.modal {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  margin: 0;
  padding: 0;
  z-index: 100;

  backdrop-filter: blur(12px);
}

.navigation-menu {
  width: 100%;
  height: 100%;
  background: var(--Main-Color-Background);

  transform: translateX(-100%); /* Початково меню за межами екрана зліва */
  transition: transform 0.3s ease-in-out; /* Плавна анімація */

  /* display: none; */
}

.navigation-menu.open {
  /* display: block; */
  transform: translateX(0);
}

.navigation-menu-cross {
  width: 36px;
  height: 36px;
}

.navigation-menu-header {
  align-items: center;
  justify-content: space-between;
  padding: 36px 16px 8px 16px;
  border-bottom: 1px solid var(--Main-Color-Grey);
}

.navigation-menu-item {
  padding: 16px 24px 6px 24px;
  border-bottom: 1px solid var(--Main-Color-Grey);
  justify-content: space-between;
  text-decoration: none;
  color: var(--Main-Color-Dark);
}

.navigation-menu-icon {
  cursor: pointer;
  width: 24px;
  height: 24px;
}

.free-evaluation,
.contact-form {
  width: 100vw;
  height: 100vh;
}

.free-evaluation-container {
  background-color: var(--Main-Color-Background);
  padding: 16px;
  max-width: 80%;
  border-radius: 16px;
  box-shadow: 0px 0px 30px 0px #0000001a;

  display: grid;
  grid-template-columns: 2fr;
  grid-template-rows: 0.3fr 1.8fr 0.2fr;
  grid-auto-columns: 1fr;
  gap: 20px 0px;
  grid-auto-flow: row;
  grid-template-areas:
    "free-evaluation-header"
    "free-evaluation-fields"
    "free-evaluation-submit";
}

.free-evaluation-fields {
  grid-area: free-evaluation-fields;

  display: grid;
  grid-auto-columns: 1fr;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr 1fr;
  gap: 16px 18px;
  grid-template-areas:
    ". ."
    ". ."
    ". ."
    ". .";
}

.free-evaluation-header {
  grid-area: free-evaluation-header;
  text-align: center;
}

.free-evaluation-submit {
  grid-area: free-evaluation-submit;
  border: 2px solid var(--Main-Color-Grey-Dark);
  background: var(--Main-Color-Background);
  color: var(--Main-Color-Grey-Dark);
  width: 338;
  height: 40;
  border-radius: 32px;
  padding: 12px 20px;
  max-height: 40px;
}

.free-evaluation-submit.enable {
  border: none;
  background-color: var(--Main-Color-Acent);
  color: var(--Main-Color-Background);
}

.free-evaluation-input,
.contact-form-input {
  margin-top: 4px;
  width: 80%;
  border: none;
  padding: 12px 12px;
  border-radius: 8px;
  outline: none;
  background-color: var(--Main-Color-Grey);
}

.contact-form-container {
  background-color: var(--Main-Color-Background);
  padding: 16px;
  max-width: 80%;
  border-radius: 16px;
  box-shadow: 0px 0px 30px 0px #0000001a;

  display: grid;
  grid-template-columns: 2fr;
  grid-template-rows: 0.3fr 1.8fr 0.2fr;
  grid-auto-columns: 1fr;
  gap: 20px 0px;
  grid-auto-flow: row;
  grid-template-areas:
    "free-evaluation-header"
    "free-evaluation-fields"
    "free-evaluation-submit";
}

.contact-form-fields {
  grid-area: free-evaluation-fields;

  display: grid;
  grid-auto-columns: 1fr;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 0.8fr 0.8fr 1.2fr 1.2fr;
  gap: 0px 0px;
  grid-template-areas:
    ". ."
    ". ."
    "contact-form-commentar contact-form-commentar"
    "contact-form-photos contact-form-photos";
}

.contact-form-submit {
  grid-area: free-evaluation-submit;
  border: 2px solid var(--Main-Color-Grey-Dark);
  background: var(--Main-Color-Background);
  color: var(--Main-Color-Grey-Dark);
  width: 338;
  height: 40;
  border-radius: 32px;
  padding: 12px 20px;
  max-height: 40px;
}

.contact-form-submit.enable {
  border: none;
  background-color: var(--Main-Color-Acent);
  color: var(--Main-Color-Background);
}

.contact-form-commentar {
  grid-area: contact-form-commentar;
}
.contact-form-photos {
  grid-area: contact-form-photos;
}

.contact-form-commentar-input {
  resize: none;
  width: 90%;
  height: 66px;
}

.contact-form-photos-input {
  width: 90%;
  height: 66px;
  opacity: 0;
  position: absolute;
  top: 0px;
  cursor: pointer;
}

.contact-form-photos-input-wrapper {
  margin-top: 4px;
  background: var(--Main-Color-Background);
  border: 1px solid var(--Main-Color-Dark);
  border-radius: 8px;
  position: relative;
  height: 90px;
  width: 95%;
}

.contact-form-photos-input-text {
  padding: 16px;
  gap: 4px;
}

.contact-form-photos-text {
  width: auto;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.header-modal-form {
  justify-content: start;
  align-items: center;
  gap: 18px;
}

/* Стили для модального окна успеха */
.success-modal {
  width: 100vw;
  height: 100vh;
}

.success-modal-container {
  background-color: var(--Main-Color-Background);
  padding: 24px;
  max-width: 400px;
  border-radius: 16px;
  box-shadow: 0px 0px 30px 0px #0000001a;
  text-align: center;
}

.success-modal-content {
  gap: 20px;
  align-items: center;
  margin-top: 20px;
}

.success-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.success-modal-close-btn {
  background-color: var(--Main-Color-Acent);
  color: var(--Main-Color-Background);
  border: none;
  border-radius: 32px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.success-modal-close-btn:hover {
  background-color: #e74c3c;
}

.success-modal-header {
  color: #4CAF50;
}
