/* Contacts Page */

.page-contacts {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

.contacts-section { 
    display: flex;
    align-items: center;
    width: 100%;
    padding: 60px 20px 0 20px;
}

.contacts-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.contacts-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
}

.contacts-heading {
    font-family: var(--first-family);
    font-weight: 600;
    font-size: 30px;
    line-height: 100%;
    letter-spacing: -0.02em;
    color: #f2f2f2;
    margin: 0;
}

.contacts-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
}

.contacts-image-section {
    margin-top: 48px;  
}

.contacts-image-wrapper {
    width: 100%;
    overflow: hidden;
}

.contacts-image {
    display: block;
    width: 100%;
    height: auto;  
}

.custom-cf7-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 1em;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-field input[type="text"],
.form-field input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #5e5e5e;
    border-radius: 5px;
    background: transparent;
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 110%;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    color: #5e5e5e;
    caret-color: #fff;
    transition: border-color 0.3s;
}

.form-field input:focus {
    outline: none;
    border-color: #ffffff;
    color: #fff;
}

.form-field input:not(:placeholder-shown) {
    color: #fff;
    border-color: #ffffff;
}

.form-field input:-webkit-autofill {
    -webkit-text-fill-color: #fff;
    transition: background-color 9999s ease-out; 
}

.wpcf7-not-valid ~ .wpcf7-not-valid-tip { 
    color: #ff6b6b; 
}

.form-field input::placeholder {
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 110%;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    color: #f2f2f2;
    gap: 6px;
}

.form-checkbox .wpcf7-list-item {
    margin: 0;
}

.form-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 25px;
    height: 25px;
    margin: 0;
    border: 1px solid #5e5e5e;
    border-radius: 5px;
    background-color: transparent;
    cursor: pointer; 
}

.form-checkbox input[type="checkbox"]:checked {
    background-color: #7c0098;
    position: relative;
}

.form-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 18px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form-checkbox label {
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-checkbox a {
    color: #fff;
    text-decoration: underline;
}

.form-submit input[type="submit"] {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 114px;
    height: 38px;
    padding: 10px;
    border: 1px solid #f2f2f2;
    border-radius: 5px;
    background: #f2f2f2;
    cursor: pointer;
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 16px;
    line-height: 110%;
    text-transform: uppercase;
    color: #010101;
    font-size: 14px;
    transition: background 0.3s;
}

.wpcf7-spinner {
    display: none;
}

.form-submit input[type="submit"]:hover {
    background: #e0e0e0;
}

.custom-cf7-form .wpcf7-form-control-wrap {
    display: block;
}

.custom-cf7-form .wpcf7-not-valid-tip {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .custom-cf7-form {
        padding: 0;
    }

    .contacts-container {
        flex-direction: column;
        gap: 2em;
    }
}
