/* ============================================
   Компонент формы контактов
   ============================================ */

/* Форма контактов */
.contact-form-section {
    width: 100%;
    margin-bottom: 80px;
}

.contact-form-section .container {
    width: 100%;
    max-width: 1200px;
    padding: 0 60px;
    margin: 0 auto 80px;
    box-sizing: border-box;
}

.contact-form-section-inner {
    width: 100%;
    min-height: 334px;
    background-image: url('/assets/images/image 6344858.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 5px;
    padding: 59px 50px;
    position: relative;
}

.contact-form-section-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(20, 29, 48, 0.9) 0%, rgba(20, 29, 48, 0.9) 100%);
    border-radius: 5px;
}

.contact-form-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #ffffff;
    font-size: 35px;
    letter-spacing: 0;
    line-height: 120%;
    margin: 0 0 20px 0;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
}

.contact-form-description {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 0;
    line-height: 140%;
    margin: 0 0 30px 0;
    position: relative;
    z-index: 1;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 1;
    align-items: flex-end;
}

.contact-form-row {
    display: flex;
    gap: 5px;
    align-items: flex-end;
    flex-wrap: nowrap;
    width: 100%;
    box-sizing: border-box;
}

.contact-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 0;
}

.contact-form-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #ffffff;
    font-size: 12px;
    letter-spacing: 0;
    line-height: 120%;
}

.contact-form-input {
    width: 324px;
    max-width: 100%;
    height: 40px;
    min-height: 40px;
    border-radius: 5px;
    border: 1.5px solid #ffffff;
    background: transparent;
    padding: 0 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #ffffff;
    font-size: 12px;
    letter-spacing: 0;
    line-height: 120%;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.contact-form-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.contact-form-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form-submit {
    display: flex;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.contact-form-submit:hover {
    transform: translateY(-2px);
}

.contact-form-submit:hover .contact-form-submit-text,
.contact-form-submit:hover .contact-form-submit-icon {
    box-shadow: 0 0 20px rgba(21, 35, 51, 0.6), 0 0 40px rgba(21, 35, 51, 0.4);
}

.contact-form-submit:hover .contact-form-submit-icon {
    box-shadow: 0 0 20px rgba(230, 0, 18, 0.6), 0 0 40px rgba(230, 0, 18, 0.4);
}

.contact-form-submit-text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 277px;
    height: 40px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 13px;
    line-height: 120%;
    letter-spacing: 0%;
    text-align: center;
    color: #152333;
    background: #FFFFFF;
    border-radius: 5px;
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.contact-form-submit:hover .contact-form-submit-text {
    color: #152333;
    background: #FFFFFF;
}

.contact-form-submit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E60012;
    border: none;
    border-radius: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.contact-form-submit-icon img {
    width: 15px;
    height: 15px;
    display: block;
    filter: brightness(0) invert(1);
    position: relative;
    z-index: 1;
}

.contact-form-consent {
    width: 100%;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 323px;
    position: relative;
    z-index: 1;
}

.contact-form-checkbox {
    width: 25px;
    height: 25px;
    border-radius: 5px;
    border: 1.5px solid #ffffff;
    background: transparent;
    flex-shrink: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
}

.contact-form-checkbox:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.contact-form-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 4px;
    width: 6px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.contact-form-consent-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #ffffff;
    font-size: 7px;
    letter-spacing: 0;
    line-height: 140%;
}

.contact-form-consent-link {
    color: #ffffff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.contact-form-consent-link:hover {
    color: var(--color-primary);
}

/* Адаптивность для планшета (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .contact-form-section .container {
        padding: 0 30px;
    }

    .contact-form-section-inner {
        padding: 50px 40px;
    }

    .contact-form-title {
        font-size: 28px;
    }

    .contact-form-description {
        font-size: 13px;
        margin-bottom: 25px;
    }

    .contact-form-row {
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .contact-form-field {
        flex: 1;
        min-width: 200px;
        max-width: calc(50% - 5px);
        box-sizing: border-box;
    }

    .contact-form-input {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .contact-form-submit {
        flex: 0 0 100%;
        width: 100%;
        margin-top: 10px;
        justify-content: center;
        box-sizing: border-box;
    }

    .contact-form-submit-text {
        flex: 1;
        max-width: 300px;
    }

    .contact-form-consent {
        max-width: 100%;
    }
}

/* Промежуточные размеры экрана (1025px - 1400px) */
@media (min-width: 1025px) and (max-width: 1400px) {
    .contact-form-row {
        flex-wrap: wrap;
        width: 100%;
        box-sizing: border-box;
    }

    .contact-form-field {
        flex: 1;
        min-width: 0;
        max-width: calc(50% - 3px);
        box-sizing: border-box;
    }

    .contact-form-input {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Мобильная версия */
@media (max-width: 768px) {
    .contact-form-section {
        margin-bottom: 40px;
    }

    .contact-form-section .container {
        margin-bottom: 40px;
        padding: 0 20px;
    }

    .contact-form-section-inner {
        padding: 40px 20px;
    }

    .contact-form-title {
        font-size: 24px;
    }

    .contact-form-row {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        box-sizing: border-box;
    }

    .contact-form-field {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .contact-form-input {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .contact-form-submit {
        width: 100%;
    }

    .contact-form-submit-text {
        flex: 1;
    }

    .contact-form-consent {
        max-width: 100%;
    }
}

/* ============================================
   Модальное окно для уведомлений
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
}

.modal-popup {
    background-color: var(--color-white);
    border-radius: 10px;
    padding: 40px 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-popup {
    transform: scale(1);
}

.modal-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--color-dark-blue);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.modal-popup-close:hover {
    color: var(--color-primary);
}

.modal-popup-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-popup-success .modal-popup-icon {
    background-color: #28a745;
    color: var(--color-white);
}

.modal-popup-error .modal-popup-icon {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.modal-popup-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--color-dark-blue);
    margin: 0 0 15px 0;
}

.modal-popup-message {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: var(--color-dark-blue);
    margin: 0 0 30px 0;
    line-height: 1.5;
}

.modal-popup-button {
    margin-top: 20px;
}

.modal-popup-button button {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--color-white);
    background-color: var(--color-primary);
    border: none;
    border-radius: 5px;
    padding: 12px 40px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-popup-button button:hover {
    background-color: #cc0010;
}

@media (max-width: 768px) {
    .modal-overlay {
        padding: 20px;
        align-items: flex-end;
        justify-content: center;
    }

    .modal-popup {
        padding: 30px 25px;
        max-width: 100%;
        width: 100%;
        border-radius: 15px 15px 0 0;
        margin-bottom: 0;
        max-height: 90vh;
        overflow-y: auto;
        transform: translateY(100%);
    }

    .modal-overlay.show .modal-popup {
        transform: translateY(0);
    }

    .modal-popup-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 32px;
    }

    .modal-popup-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 15px;
    }

    .modal-popup-icon svg {
        width: 28px;
        height: 28px;
    }

    .modal-popup-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .modal-popup-message {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 25px;
    }

    .modal-popup-button {
        margin-top: 15px;
    }

    .modal-popup-button button {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
    }
}

