/* CTA Audit Block Styles */
.cta-audit {
    position: relative;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    color: #fff;
}

.cta-audit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.cta-audit__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cta-audit__content {
    padding-right: 40px;
}

.cta-audit__title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff;
}

.cta-audit__subtitle {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-audit__features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cta-audit__feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 1rem;
}

.cta-audit__feature-icon {
    background: #4CAF50;
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-right: 15px;
    flex-shrink: 0;
}

.cta-audit__feature-text {
    line-height: 1.4;
}

/* Form Container */
.cta-audit__form {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.audit-form__title {
    color: #333;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.audit-form__subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* Contact Form 7 Specific Styles */
.wpcf7-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

.wpcf7-form .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 20px;
}

.wpcf7-form-control:not(.wpcf7-acceptance):not([type="submit"]) {
    width: 100% !important;
    padding: 15px 20px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    background: #f8f9fa !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
}

.wpcf7-form-control:focus {
    outline: none !important;
    border-color: #2a5298 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1) !important;
}

/* Specific field types */
.wpcf7-textarea {
    resize: vertical !important;
    min-height: 120px !important;
    font-family: inherit !important;
}

/* Submit Button */
.wpcf7-submit {
    display: inline-block !important;
    width: 100% !important;
    padding: 15px 30px !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    background: var(--accent, #7747D4) !important;
    color: #fff !important;
    margin-top: 10px !important;
}

.wpcf7-submit:hover {
    background: var(--accent, #7747D4) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3) !important;
}

.wpcf7-submit:active {
    transform: translateY(0) !important;
}

/* Privacy Text */
.audit-form__privacy {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    margin-top: 20px;
    line-height: 1.4;
}

.audit-form__privacy a {
    color: #2a5298;
    text-decoration: none;
}

.audit-form__privacy a:hover {
    text-decoration: underline;
}

/* Form States */
.wpcf7-form .wpcf7-response-output {
    margin: 20px 0 0 !important;
    padding: 15px !important;
    border-radius: 10px !important;
    text-align: center;
    font-size: 0.9rem;
}

.wpcf7-form .wpcf7-mail-sent-ok {
    background: #d4edda !important;
    border: 1px solid #c3e6cb !important;
    color: #155724 !important;
}

.wpcf7-form .wpcf7-mail-sent-ng {
    background: #f8d7da !important;
    border: 1px solid #f5c6cb !important;
    color: #721c24 !important;
}

.wpcf7-form .wpcf7-spinner {
    margin: 0 auto !important;
}

/* Validation Styles */
.wpcf7-not-valid-tip {
    color: #dc3545 !important;
    font-size: 0.8rem !important;
    margin-top: 5px !important;
    display: block !important;
}

.wpcf7-form-control.wpcf7-not-valid {
    border-color: #dc3545 !important;
}

.wpcf7-form-control.wpcf7-valid {
    border-color: #28a745 !important;
}

/* Loading state */
.wpcf7-form .wpcf7-submit:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cta-audit__inner {
        gap: 40px;
    }

    .cta-audit__content {
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    .cta-audit {
        padding: 60px 0;
    }

    .cta-audit__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cta-audit__content {
        padding-right: 0;
        text-align: center;
    }

    .cta-audit__title {
        font-size: 2rem;
    }

    .cta-audit__feature {
        justify-content: center;
        text-align: left;
    }

    .cta-audit__form {
        padding: 30px 25px;
    }
}

@media (max-width: 480px) {
    .cta-audit {
        padding: 40px 0;
    }

    .cta-audit__title {
        font-size: 1.75rem;
    }

    .cta-audit__form {
        padding: 25px 20px;
    }

    .wpcf7-form-control {
        padding: 12px 15px !important;
    }
}

/* Animation for form elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-audit__form {
    animation: fadeInUp 0.6s ease-out;
}

.cta-audit__feature {
    animation: fadeInUp 0.6s ease-out;
}

.cta-audit__feature:nth-child(1) {
    animation-delay: 0.1s;
}

.cta-audit__feature:nth-child(2) {
    animation-delay: 0.2s;
}

.cta-audit__feature:nth-child(3) {
    animation-delay: 0.3s;
}

.cta-audit__feature:nth-child(4) {
    animation-delay: 0.4s;
}

/* Placeholder styles */
.wpcf7-form-control::placeholder {
    color: #999 !important;
    opacity: 1 !important;
}

.wpcf7-form-control::-webkit-input-placeholder {
    color: #999 !important;
}

.wpcf7-form-control::-moz-placeholder {
    color: #999 !important;
}

.wpcf7-form-control:-ms-input-placeholder {
    color: #999 !important;
}

.wpcf7-form-control:-moz-placeholder {
    color: #999 !important;
}