/* 
Theme Name: Insuffle v2 - Radical (Plugin Overrides)
Description: Dedicated stylesheet for overriding and harmonizing third-party plugin styles with the theme's design system.
*/

/* =========================================
   1. CONTACT FORM 7 (CF7)
   ========================================= */

/* Layout & Spacing */
.wpcf7-form p {
    margin-bottom: 1.5rem;
}

.wpcf7-form-control-wrap {
    display: block;
    margin-top: 0.5rem;
}

/* Inputs & Textareas - Harmonized with Theme */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 1rem;
    border-radius: 0.25rem;
    /* Tailwind rounded-sm */
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: #3b82f6;
    /* brand-primaryLight */
    background-color: rgba(255, 255, 255, 0.1);
}

/* Submit Button - Matches Theme Buttons */
.wpcf7 input[type="submit"] {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #1f3a8b;
    /* brand-primary */
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 1px solid #1f3a8b;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0.25rem;
}

.wpcf7 input[type="submit"]:hover {
    background-color: transparent;
    color: #3b82f6;
    border-color: #3b82f6;
}

/* Validation Messages */
.wpcf7-not-valid-tip {
    font-size: 0.875rem;
    color: #ef4444;
    /* Tailwind red-500 */
    margin-top: 0.5rem;
}

.wpcf7 form .wpcf7-response-output {
    margin: 2rem 0 0;
    padding: 1rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.wpcf7 form.sent .wpcf7-response-output {
    background-color: rgba(16, 185, 129, 0.1);
    /* Green tint */
    border-color: #10b981;
    color: #10b981;
}

.wpcf7 form.invalid .wpcf7-response-output {
    background-color: rgba(239, 68, 68, 0.1);
    /* Red tint */
    border-color: #ef4444;
    color: #ef4444;
}

/* =========================================
   2. HUBSPOT FORMS
   ========================================= */

/* Container */
.hbspt-form {
    margin: 2rem 0;
}

/* Inputs */
.hs-input {
    width: 100% !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    padding: 1rem !important;
    border-radius: 0.25rem !important;
    font-family: 'Poppins', sans-serif !important;
    box-sizing: border-box !important;
}

.hs-input:focus {
    border-color: #3b82f6 !important;
    outline: none !important;
}

/* Labels */
.hs-form-field>label {
    color: #94a3b8 !important;
    /* brand-muted */
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
}

/* Submit Button */
.hs-button {
    background-color: #1f3a8b !important;
    border: 1px solid #1f3a8b !important;
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    padding: 0.75rem 2rem !important;
    border-radius: 0.25rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

.hs-button:hover {
    background-color: transparent !important;
    color: #3b82f6 !important;
    border-color: #3b82f6 !important;
}

/* Error Messages */
.hs-error-msgs label {
    color: #ef4444 !important;
    font-size: 0.875rem !important;
}

/* =========================================
   3. COMPLIANZ / COOKIE BANNER
   ========================================= */

/* Force dark theme compatibility */
.cmplz-cookiebanner {
    background-color: #0c1629 !important;
    /* brand-card */
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #94a3b8 !important;
    /* brand-muted */
}

.cmplz-cookiebanner .cmplz-title {
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif !important;
}

.cmplz-cookiebanner .cmplz-btn {
    background-color: #1f3a8b !important;
    color: #ffffff !important;
    border-radius: 0.25rem !important;
    font-weight: 600 !important;
}

/* =========================================
   4. RANK MATH / BREADCRUMBS
   ========================================= */

.rank-math-breadcrumb {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.rank-math-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.rank-math-breadcrumb a:hover {
    color: #3b82f6;
}

.rank-math-breadcrumb .separator {
    margin: 0 0.5rem;
    opacity: 0.5;
}

/* =========================================
   5. GENERAL UTILITIES
   ========================================= */

/* ReCAPTCHA Badge - often overlaps content */
.grecaptcha-badge {
    z-index: 9999;
}

/* Hide default WP search block button if it clashes */
.wp-block-search__button {
    background-color: #1f3a8b;
    color: white;
}