/*
Theme Name: Worked Consulting Divi Child
Theme URI: https://workedconsulting.com/
Description: Child theme for workedconsulting.com running on Divi 5.
Author: PD Design
Template: Divi
Version: 1.1.0
Text Domain: workedconsulting-divi-child
*/

/* Header Menu */
.main-menu__cta a {
    background: #97121e;
    padding: 15px 26px !important;
    transition: 0.3s ease all;
    color: white !important;
}

.main-menu__cta a:hover {
    background: #132051;
    opacity: 1;
}

.et_pb_menu .et_pb_menu__menu>nav>ul>li {
    align-items: center!important;
}

.et_pb_menu .et-menu>li {
    padding-left: 20px;
    padding-right: 20px;
}

/* G Form */

/* CTA G Form (overrides for default gfrom styling) */
.cta-form .gfield_label,
.cta-form .gform-field-label,
.cta-form .gfield_description {
    color: #fff !important;
}

.cta-form .gform_button {
    background: #97121e !important;
    padding: 15px 26px !important;
    transition: 0.3s ease all !important;
    color: white !important;
    font-size: 20px !important;
    font-weight: 600 !important;
}

.cta-form .gform_button:hover {
    background: #132051 !important;
    opacity: 1 !important;
}

/* ------------------------------------------------------------------ *
 * "Get In Touch" CTA form  (About / What We Do / Home)
 *
 * Gravity Forms renders its own markup inside a Divi Code module, so NO
 * builder option reaches these fields — this is one of the few places a
 * child-theme rule is the only mechanism available. Everything else on
 * those pages is a native Divi option in the page import.
 *
 * Scope: `.wed-cta-form` is the Code module wrapper emitted by the page
 * import; `.cta-form` is form 1's own CSS Class Name, set in Gravity Forms.
 * Requiring both means these rules can never leak to another form.
 *
 * `!important` throughout for the same reason the `.cta-form` rules above
 * need it: Gravity Forms' "orbital" theme prints an inline <style> block
 * scoped by `#gform_wrapper_1[data-form-index="0"]`, which outranks any
 * class selector we can write from a stylesheet.
 *
 * Target: the Elementor original used square, 16px fields on the navy band.
 * Orbital ships 3px radius and 14px text.
 * ------------------------------------------------------------------ */
.wed-cta-form .gform_wrapper.gform-theme {
    --gf-radius: 0 !important;
}

.wed-cta-form .cta-form input[type="text"],
.wed-cta-form .cta-form input[type="email"],
.wed-cta-form .cta-form input[type="tel"],
.wed-cta-form .cta-form textarea {
    border: 1px solid #69727d !important;
    border-radius: 0 !important;
    padding: 6px 16px !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    background: #fff !important;
    /* Orbital pins fields to a 38px line-height; the original is 47px tall. */
    min-height: 47px !important;
}

/* Gravity Forms sizes the textarea from its `rows` (10); the original is 104px. */
.wed-cta-form .cta-form textarea {
    min-height: 0 !important;
    height: 104px !important;
}

/* The original submit button spans the form; Gravity Forms' is auto-width.
   Scoped to .wed-cta-form so form 1 is unaffected wherever else it appears. */
.wed-cta-form .cta-form .gform_button {
    width: 100% !important;
    /* `height`, not min-height: Gravity Forms pins the control to a 38px
       min-height from its own ID-scoped !important rule, which no class
       selector can outrank. */
    height: 49px !important;
    padding: 10px 35px !important;
    border-radius: 0 !important;
}

/* Gravity Forms' grid opens 40px between fields; the original is 16px. */
.wed-cta-form .cta-form .gform_fields {
    row-gap: 16px !important;
}

.wed-cta-form .cta-form .gform_footer {
    margin-top: 16px !important;
    padding: 0 !important;
}

/* The original has no character counter under the message field. */
.wed-cta-form .cta-form .ginput_counter {
    display: none !important;
}

/* The panel is near-black, so required markers and validation text must stay
   legible against it. */
.wed-cta-form .cta-form .gfield_required,
.wed-cta-form .cta-form .gform_required_legend,
.wed-cta-form .cta-form .gform_validation_errors {
    color: #fff !important;
}
