/*
 Theme Name: Astra Child
 Template: astra
 Description: Child theme for Yusupov Production
 Version: 1.0
*/

/* Custom styles for Yusupov Production */
.wpcf7 input[type=text],
.wpcf7 input[type=tel],
.wpcf7 input[type=email] {
    height: 48px !important;
    width: 100% !important;
    border-radius: 12px !important;
    border: 1px solid #e5e5e5 !important;
    background: #fafafa !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.wpcf7 input[type=text]:focus,
.wpcf7 input[type=tel]:focus,
.wpcf7 input[type=email]:focus {
    border-color: #1a7a3a !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(26,122,58,0.15) !important;
}

.wpcf7 input[type=submit] {
    height: 48px !important;
    width: 100% !important;
    border-radius: 12px !important;
    background: #1a7a3a !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border: none !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}

.wpcf7 input[type=submit]:hover {
    background: #15632f !important;
}

.wpcf7 .wpcf7-response-output {
    border-radius: 12px !important;
    font-size: 14px !important;
}

/* Hide Astra header/footer on landing page */
body.page-template-landing .site-header,
body.page-template-landing .site-footer {
    display: none;
}

/* Sticky custom header */
.yp-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Fix CF7 submit button - force green */
.wpcf7 input[type=submit],
.wpcf7 .wpcf7-submit {
    background: #1a7a3a !important;
    background-color: #1a7a3a !important;
    color: #fff !important;
}
.wpcf7 input[type=submit]:hover,
.wpcf7 .wpcf7-submit:hover {
    background: #15632f !important;
    background-color: #15632f !important;
}

/* Fix empty social link boxes */
#contacts a[href='']:empty,
#contacts div:empty {
    display: none !important;
}

/* Force green button everywhere */
.wpcf7 input.wpcf7-submit,
.wpcf7-form input[type=submit],
input.wpcf7-submit {
    background: #1a7a3a !important;
    background-color: #1a7a3a !important;
    color: #fff !important;
    height: 48px !important;
    width: 100% !important;
    border-radius: 12px !important;
    border: none !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}
.wpcf7 input.wpcf7-submit:hover,
input.wpcf7-submit:hover {
    background: #15632f !important;
    background-color: #15632f !important;
}

/* Style CF7 inputs */
.wpcf7-form-control-wrap input {
    height: 48px !important;
    width: 100% !important;
    border-radius: 12px !important;
    border: 1px solid #e5e5e5 !important;
    background: #fafafa !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
}
.wpcf7-form-control-wrap input:focus {
    border-color: #1a7a3a !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(26,122,58,0.15) !important;
}

/* Service card hover */
a[href*=/uslugi/]:hover {
    box-shadow: 0 8px 24px rgba(26,122,58,0.1) !important;
    transform: translateY(-2px) !important;
}

/* Hide empty paragraphs in contacts */
#contacts p:empty,
#contacts br:empty {
    display: none !important;
}

/* CF7 spacing fix */
.wpcf7-form p {
    margin-bottom: 16px !important;
}
