/* Contact Form Component Styles */

.contact-form-component {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form-row {
    display: flex;
    gap: 10px;
}

.contact-form-input {
    font-family: "Commissioner", sans-serif;
    font-weight: 400;
    font-size: 16px;
    leading-trim: CAP_HEIGHT;
    line-height: 100%;
    letter-spacing: -6%;
    padding: 20px;
    border: 1px solid #D9D9D9;
    background-color: #3533311A;
    backdrop-filter: blur(10px);
    border-radius: 5px;
    color: #353331;
    max-width: 320px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.contact-form-input:focus {
    outline: none;
    border-color: #353331;
}

.contact-form-input::placeholder {
    color: #353331B3;
}

.contact-form-email-input {
    max-width: 650px;
}

.contact-form-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
}

.contact-form-checkbox {
    width: 20px;
    height: 20px;
    accent-color: transparent;
    background-color: transparent;
    border: 1px solid #353331;
    border-radius: 3px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-form-checkbox:checked {
    background-color: #353331;
    border-color: #353331;
}

.contact-form-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: bold;
}

.contact-form-checkbox-label {
    font-family: "Commissioner", sans-serif;
    font-weight: 400;
    font-size: clamp(14px, calc(14px + (16 - 14) * ((100vw - 991px) / (1920 - 991))), 16px);
    leading-trim: CAP_HEIGHT;
    line-height: 120%;
    letter-spacing: -6%;
    color: #353331;
    cursor: pointer;
}

.contact-form-checkbox-label .contact-form-underline-text {
    text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-offset: 0%;
    text-decoration-thickness: 6%;
    text-decoration-skip-ink: auto;
    color: #353331;
    transition: opacity 0.3s ease;
}

.contact-form-checkbox-label .contact-form-underline-text:hover {
    opacity: 0.7;
}

.contact-form-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    font-family: "Commissioner", sans-serif;
    font-weight: 500;
    font-size: clamp(14px, calc(14px + (18 - 14) * ((100vw - 991px) / (1920 - 991))), 18px);
    line-height: 100%;
    letter-spacing: -0.04em;
    text-align: left;
    color: #FFFFFF;
    padding: 5px 5px 5px 15px;
    background-color: #353331;
    border-radius: 7px;
    white-space: nowrap;
    max-width: 320px;
    width: 100%;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.contact-form-submit-btn:hover {
    background-color: #2a2724;
}

.contact-form-submit-btn .contact-form-btn-icon-wrap {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: clamp(35px, calc(35px + (45 - 35) * ((100vw - 991px) / (1920 - 991))), 45px);
    height: clamp(35px, calc(35px + (45 - 35) * ((100vw - 991px) / (1920 - 991))), 45px);
    background-color: #FFFFFF;
    border-radius: 5px;
}
.contact-form-submit-btn span:first-of-type {
    transition: opacity 0.3s ease;
}
.contact-form-submit-btn:hover span:first-of-type {
    opacity: 0.8;
}
.contact-form-submit-btn .contact-form-btn-icon-wrap img {
    transition: transform 0.3s ease;
}
.contact-form-submit-btn:hover .contact-form-btn-icon-wrap img {
    transform: rotate(45deg);
}

/* Адаптивность */
@media (max-width: 991px) {
    .contact-form-input::placeholder {
        font-family: 'Commissioner', sans-serif;
        font-weight: 400;
        font-style: normal;
        font-size: 16px;
        line-height: 100%;
        letter-spacing: -6%;
        leading-trim: CAP_HEIGHT;
    }
    
    .contact-form-checkbox {
        width: 15px;
        height: 15px;
        min-width: 15px;
        min-height: 15px;
    }
    
    .contact-form-checkbox-label {
        font-family: 'Commissioner', sans-serif;
        font-weight: 400;
        font-style: normal;
        font-size: 16px;
        line-height: 120%;
        letter-spacing: -6%;
        leading-trim: CAP_HEIGHT;
    }
    
    .contact-form-submit-btn {
        font-family: 'Commissioner', sans-serif;
        font-weight: 500;
        font-style: normal;
        font-size: 18px;
        line-height: 100%;
        letter-spacing: -4%;
        leading-trim: CAP_HEIGHT;
        width: 100%;
        max-width: 320px; /* Ограничиваем на планшете */
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 5px 5px 5px 15px;
        box-sizing: border-box;
    }
}

@media (max-width: 575px) {
    .contact-form-input {
        padding: 15px 14px;
    }
    
    .contact-form-input::placeholder {
        font-family: 'Commissioner', sans-serif;
        font-weight: 400;
        font-style: Regular;
        font-size: 16px;
        leading-trim: CAP_HEIGHT;
        line-height: 100%;
        letter-spacing: -6%;
    }
    
    .contact-form-input,
    .contact-form-email-input {
        max-width: 100%;
    }
    
    .contact-form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-form-checkbox-wrapper {
        align-items: flex-start;
    }
    
    .contact-form-checkbox-label {
        font-family: 'Commissioner', sans-serif;
        font-weight: 400;
        font-style: Regular;
        font-size: 14px;
        leading-trim: CAP_HEIGHT;
        line-height: 120%;
        letter-spacing: -6%;
    }
}