/*
Theme Name: Digital Tex
Text Domain: Digital Tex
Version: 2
Tested up to: 6.0
Requires at least: 6.0
Requires PHP: 8.0
Description: Наша компания имеет большой опыт в сфере Digital Signage, мы гарантируем качественные услуги для вашего бизнеса
Author: starcev-agency.ru
*/

/* =========================
   MODAL BASE
========================= */

.consult-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.consult-modal.active {
  display: flex;
}

.consult-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(5px);
}

/* =========================
   MODAL CONTENT
========================= */

.consult-modal__content {
  position: relative;
  background: #ffffff;
  width: 92%;
  max-width: 620px;
  padding: 45px;
  border-radius: 24px;
  z-index: 2;
  animation: modalFade .25s ease;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
}

/* TITLE + TEXT INSIDE MODAL */

.consult-modal__content .title,
.consult-modal__content h2 {
  color: #2f2f2f;
  margin-bottom: 10px;
}

.consult-modal__content .text,
.consult-modal__content p {
  color: #6a6a6a;
  margin-bottom: 20px;
}

/* =========================
   CLOSE BUTTON
========================= */

.consult-modal__close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: #f2f2f2;
  color: #333;
  font-size: 24px;
  cursor: pointer;
  transition: .2s ease;
  z-index: 5;
}

.consult-modal__close:hover {
  background: #111;
  color: #fff;
}

/* =========================
   FORM STYLES (CLEAN & MODERN)
========================= */

.form input,
.form textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  font-size: 15px;
  color: #333;
  background: #fff;
  margin-bottom: 14px;
  transition: .2s ease;
  box-sizing: border-box;
}

.form input::placeholder,
.form textarea::placeholder {
  color: #9a9a9a;
}

.form input:focus,
.form textarea:focus {
  border-color: #555;
  outline: none;
  box-shadow: 0 0 0 4px rgba(0,0,0,0.05);
}

/* textarea */

.form textarea {
  min-height: 140px;
  resize: vertical;
}

/* submit button */

.form input[type="submit"] {
  width: 100%;
  background: #ffffff;
  color: #333;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  padding: 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s ease;
}

.form input[type="submit"]:hover {
  background: #f5f5f5;
  border-color: #999;
}

/* =========================
   ANIMATION
========================= */

@keyframes modalFade {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   BODY LOCK
========================= */

body.modal-open {
  overflow: hidden;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

  .consult-modal__content {
    padding: 28px 18px;
  }

}
/* =========================
PRIVACY TEXT
========================= */

.form__privacy {
margin: 8px 0 18px;
font-size: 13px;
line-height: 1.6;
color: #7a7a7a;
}

.form__privacy a {
color: #2f2f2f;
text-decoration: underline;
transition: .2s ease;
}

.form__privacy a:hover {
color: #000;
}

@media (max-width: 768px) {

.form__privacy {
font-size: 12px;
line-height: 1.5;
}

}
/* =========================
DOCUMENT DOWNLOAD
========================= */

.document-download{
margin:40px 0;
}

.document-download a{
display:inline-flex;
align-items:center;
justify-content:center;
padding:14px 28px;
border-radius:12px;
background:#111827;
color:#fff;
text-decoration:none;
font-weight:600;
transition:.25s ease;
}

.document-download a:hover{
background:#000;
transform:translateY(-2px);
}
