/* Modal window for Contact Us------------------------------------ */
#contactForm {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    min-width: 400px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 60px;
    background-color: white;
}

.modal-content p {
    font-size: 16px;
    font-weight: 200;
    line-height: 22px;
}

.modal-content a {
    font-size: 18px;
}
.modal-content a:hover {
    text-decoration: none;
}

.mail-modal {
    font-size: 20px;
    font-weight: 600;
    text-transform: lowercase;
    text-decoration: underline;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 28px;
  border-bottom: 1px solid black;
  outline: none;
  transform: translateZ(0);
}

.modal-content textarea {
    height: 28px;
    overflow: hidden;
    resize: none;
}

input::placeholder, textarea::placeholder {
    font-size: 16px;
    font-weight: 200;
    color: gray; 
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    border: 1px solid black;
    background-color: white;
}

.close img {
    display: block;
    width: 40px;
    height: 40px;
    transition: all 0.2s ease;
}

.close:hover {
    background-color: black;
}

.close:hover img {
    filter: invert(100%);
}

/* ====== button submit ====== */

button.submit {
    color: white;
    padding: 9px 0px;
    margin-top: 30px;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid black;
    background-color: black;
    transition: all 0.2s ease;
}

/* При наведении (если кнопка активна) */
button.submit:not(:disabled):hover {
    color: black;
    background-color: white !important;
}

/* ====== Состояние отправки (sending анимация точек) ====== */
button.submit.sending {
    color: black;
    background-color: white !important;
}

/* ====== sent ====== */
button.submit.sent {
    color: black;
    background-color: white;
    cursor: default;
    pointer-events: none;
}

/* ====== error ====== */
button.submit.error {
    background-color: white;
    color: #dc3545;
    pointer-events: none;
}

/* ====== form-message ====== */
.form-message {
    min-height: 22px;       /* резервируем место под текст */
    opacity: 0;
    transition: opacity 0.4s ease; /* только плавное проявление */
    text-align: center;     /* аккуратно выравнивает сообщение */
}

.form-message.show {
    opacity: 1; /* проявление текста */
}

.form-message.success {
    color: white;
    background-color: black;
    border: 1px solid black;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.4s ease;
}

.form-message.error {
    color: #dc3545;
}


/* ====== contact-social ====== */
.contact-social {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}
  

