/*
Theme Name: DK Builder
Version: 1.1
Author: WebTek
Author URI: http://www.webtekcc.com/
*/


/* WordPress Image Alignment */
.aligncenter { text-align:center; }
.alignleft { float:left; margin-right:30px; margin-bottom:30px; }
.alignright { float:right; margin-left:30px; margin-bottom:30px; }



/*! normalize.css v1.1.0 | MIT License | git.io/normalize */
article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,video{display:inline-block;*display:inline;*zoom:1}audio:not([controls]){display:none;height:0}[hidden]{display:none}html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}html,button,input,select,textarea{font-family:sans-serif}body{margin:0}a:focus{outline:thin dotted}a:active,a:hover{outline:0}h1{font-size:2em;margin:.67em 0}h2{font-size:1.5em;margin:.83em 0}h3{font-size:1.17em;margin:1em 0}h4{font-size:1em;margin:1.33em 0}h5{font-size:.83em;margin:1.67em 0}h6{font-size:.67em;margin:2.33em 0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}blockquote{margin:1em 40px}dfn{font-style:italic}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}mark{background:#ff0;color:#000}p,pre{margin:1em 0}code,kbd,pre,samp{font-family:monospace,serif;_font-family:'courier new',monospace;font-size:1em}pre{white-space:pre;white-space:pre-wrap;word-wrap:break-word}q{quotes:none}q:before,q:after{content:'';content:none}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}dl,menu,ol,ul{margin:1em 0}dd{margin:0 0 0 40px}menu,ol,ul{padding:0 0 0 40px}nav ul,nav ol{list-style:none;list-style-image:none}img{border:0;-ms-interpolation-mode:bicubic}svg:not(:root){overflow:hidden}figure{margin:0}form{margin:0}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0;white-space:normal;*margin-left:-7px}button,input,select,textarea{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle}button,input{line-height:normal}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer;*overflow:visible}button[disabled],html input[disabled]{cursor:default}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0;*height:13px;*width:13px}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0}

/* ==========================================================
   DK BUILDER - GRAVITY FORMS
   Sitewide styling for Gravity Forms (Orbital theme), matched
   to the theme's original Contact Form 7 look (css/main.css
   "form" rules): small bold uppercase labels, 3px light grey
   boxes, square corners, green uppercase button.
   Gravity Forms prints its colour tokens inline with an ID
   selector, so those few tokens need !important to take.
   ========================================================== */

/* 1. TOKENS */
.gform_wrapper.gform-theme--framework {
    --dk-maroon: #880526;
    --dk-ink: #222;
    --dk-muted: #666;
    --dk-line: #e1e1e1;
    --dk-line-hover: #ccc;
    --dk-line-focus: #888;
    --dk-green: #4caf50;
    --dk-green-dark: #449d48;
    --dk-control-font: sans-serif;

    --gf-color-primary: #4caf50 !important;
    --gf-color-primary-rgb: 76, 175, 80 !important;
    --gf-color-primary-darker: #449d48 !important;
    --gf-color-primary-lighter: #66bb6a !important;
    --gf-color-in-ctrl-primary: #4caf50 !important;
    --gf-color-in-ctrl-primary-rgb: 76, 175, 80 !important;
    --gf-color-in-ctrl-primary-darker: #449d48 !important;
    --gf-color-in-ctrl-primary-lighter: #66bb6a !important;
    --gf-ctrl-border-color: var(--dk-line) !important;
    --gf-ctrl-label-color-primary: var(--dk-ink) !important;
    --gf-ctrl-label-color-secondary: var(--dk-ink) !important;
    --gf-radius: 0 !important;
    --gf-ctrl-size: 50px !important;
    --gf-ctrl-btn-size: 60px !important;
    --gf-ctrl-btn-padding-x: 24px !important;
    --gf-ctrl-btn-font-size: 16px !important;

    --gf-font-family-base: 'Oxygen', sans-serif;
    --gf-font-size-primary: 16px;
    --gf-ctrl-btn-font-weight: 700;
    --gf-ctrl-shadow: none;
    --gf-ctrl-btn-shadow: none;
    --gf-ctrl-label-font-size-primary: 12px;
    --gf-ctrl-label-font-weight-primary: 700;
    --gf-ctrl-label-font-size-tertiary: 12px;
    --gf-ctrl-label-color-tertiary: var(--dk-muted);
    --gf-ctrl-label-font-size-req: 12px;
    --gf-ctrl-label-color-req: #de403b;
    --gf-ctrl-outline-width-focus: 0;
    --gf-form-gap-x: 8px;
    --gf-form-gap-y: 18px;
    --gf-field-gap-x: 8px;
    --gf-field-gap-y: 12px;
    --gf-field-section-border-color: var(--dk-line);
    --gf-field-section-padding-y-end: 12px;
    --gf-form-footer-margin-y-start: 24px;

    background: none;
    border: 0;
    color: var(--dk-ink);
    font-family: 'Oxygen', sans-serif;
    padding: 0;
}

/* wpautop wraps the shortcode in an empty <p> whose margin pushes the form down. */
p:has(+ .gform_wrapper.gform-theme) {
    margin-bottom: 0;
}

/* 2. SECTION HEADINGS */
.gform_wrapper.gform-theme--framework .gsection:not(:first-child) {
    margin-top: 16px;
}

.gform_wrapper.gform-theme--framework .gsection_title {
    color: var(--dk-maroon);
    font-family: 'Merriweather', serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.gform_wrapper.gform-theme--framework .gsection_description {
    color: var(--dk-muted);
    font-size: 14px;
    line-height: 1.5;
    margin-top: 4px;
    padding: 0;
}

/* 3. LABELS */
.gform_wrapper.gform-theme--framework .gfield_label {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.gform_wrapper.gform-theme--framework .gfield_required {
    font-weight: 400;
    text-transform: none;
}

/* Sub-labels (First, Last, City...) sit between the label and the box. */
.gform_wrapper.gform-theme--framework .gform-field-label--type-sub {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 6px;
    text-transform: none;
}

.gform_wrapper.gform-theme--framework .gfield_description {
    color: var(--dk-muted);
    font-size: 14px;
    line-height: 1.5;
    padding-top: 0;
    padding-bottom: 6px;
}

/* 4. TEXT INPUTS, SELECTS, TEXTAREA */
.gform_wrapper.gform-theme--framework input[type="text"],
.gform_wrapper.gform-theme--framework input[type="email"],
.gform_wrapper.gform-theme--framework input[type="tel"],
.gform_wrapper.gform-theme--framework input[type="url"],
.gform_wrapper.gform-theme--framework input[type="number"],
.gform_wrapper.gform-theme--framework input[type="password"],
.gform_wrapper.gform-theme--framework select,
.gform_wrapper.gform-theme--framework textarea {
    background-color: #fff;
    border: 3px solid var(--dk-line);
    border-radius: 0;
    box-shadow: none;
    color: var(--dk-ink);
    font-family: var(--dk-control-font);
    font-size: 16px;
    margin: 0;
    max-width: 100%;
    outline: none;
    width: 100%;
}

/* Full width at any size setting; !important beats the theme's global 95% email rule. */
.gform_wrapper.gform-theme--framework .gfield input:not([type="radio"]):not([type="checkbox"]),
.gform_wrapper.gform-theme--framework .gfield select,
.gform_wrapper.gform-theme--framework .gfield textarea {
    inline-size: 100% !important;
}

.gform_wrapper.gform-theme--framework input[type="text"],
.gform_wrapper.gform-theme--framework input[type="email"],
.gform_wrapper.gform-theme--framework input[type="tel"],
.gform_wrapper.gform-theme--framework input[type="url"],
.gform_wrapper.gform-theme--framework input[type="number"],
.gform_wrapper.gform-theme--framework input[type="password"] {
    height: 50px;
    padding: 0 8px;
}

.gform_wrapper.gform-theme--framework select {
    cursor: pointer;
    height: 50px;
    padding: 0 36px 0 12px;
}

.gform_wrapper.gform-theme--framework textarea {
    line-height: 1.4;
    min-block-size: 0;
    min-height: 125px;
    padding: 8px;
    resize: vertical;
}

/* Focus border colour comes from Ultimate Addons for CF7's sitewide
   !important :focus-visible rule, the same as on the CF7 form. */
.gform_wrapper.gform-theme--framework input:focus,
.gform_wrapper.gform-theme--framework select:focus,
.gform_wrapper.gform-theme--framework textarea:focus {
    box-shadow: none;
    outline: none;
}

.gform_wrapper.gform-theme--framework ::placeholder {
    color: #999;
    opacity: 1;
}

/* 5. RADIO + CHECKBOX CHOICES AS BOXES */
.gform_wrapper.gform-theme--framework .gfield--type-choice .gfield_radio,
.gform_wrapper.gform-theme--framework .gfield--type-choice .gfield_checkbox {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.gform_wrapper.gform-theme--framework .gfield--type-choice .gchoice {
    align-items: center;
    background: #fff;
    border: 3px solid var(--dk-line);
    border-radius: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 50px;
    padding: 8px 12px;
    position: relative;
    transition: border-color .2s ease;
}

.gform_wrapper.gform-theme--framework .gfield--type-choice .gchoice:hover {
    border-color: var(--dk-line-hover);
}

.gform_wrapper.gform-theme--framework .gfield--type-choice .gchoice:has(input:checked) {
    border-color: var(--dk-green);
}

.gform_wrapper.gform-theme--framework .gfield--type-choice .gchoice:has(input:focus-visible) {
    outline: 2px solid var(--dk-line-focus);
    outline-offset: 2px;
}

.gform_wrapper.gform-theme--framework .gfield--type-choice .gchoice .gfield-choice-input {
    border: 2px solid #bbb;
    box-shadow: none;
    flex: none;
    margin: 0;
}

.gform_wrapper.gform-theme--framework .gfield--type-choice .gchoice .gfield-choice-input:checked {
    border-color: var(--dk-green);
}

.gform_wrapper.gform-theme--framework .gfield--type-choice .gchoice label {
    color: var(--dk-ink);
    cursor: pointer;
    flex: 1;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.35;
    margin: 0;
    position: static;
    text-transform: none;
}

/* Stretch the label over the whole box so any click selects it. */
.gform_wrapper.gform-theme--framework .gfield--type-choice .gchoice label::before {
    content: "";
    inset: 0;
    position: absolute;
}

/* "Other" choice: full row with its text box inline. */
.gform_wrapper.gform-theme--framework .gfield--type-choice .gchoice:has(.gchoice_other_control) {
    grid-column: 1 / -1;
}

.gform_wrapper.gform-theme--framework .gfield--type-choice .gchoice:has(.gchoice_other_control) label {
    flex: none;
}

.gform_wrapper.gform-theme--framework .gfield--type-choice .gchoice_other_control {
    border-width: 2px;
    flex: 1 1 200px;
    height: 38px;
    max-inline-size: none;
    position: relative;
    z-index: 1;
}

.gform_wrapper.gform-theme--framework .gfield--type-choice .gchoice_other_control:disabled {
    background: #f7f7f7;
    color: #999;
    pointer-events: none;
}

/* 6. SUBMIT BUTTON */
.gform_wrapper.gform-theme.gform-theme--framework .gform_footer button.gform_button.button {
    background-color: var(--dk-green);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: #fff;
    font-family: var(--dk-control-font);
    font-size: 16px;
    font-weight: 700;
    height: 60px;
    letter-spacing: normal;
    max-width: 290px;
    text-transform: uppercase;
    width: 100%;
}

.gform_wrapper.gform-theme.gform-theme--framework .gform_footer button.gform_button.button:hover {
    background-color: var(--dk-green-dark);
}

/* 7. VALIDATION */
.gform_wrapper.gform-theme--framework .gform_validation_errors {
    border-radius: 0;
    margin-bottom: 24px;
}

.gform_wrapper.gform-theme--framework .gfield_description.validation_message {
    color: var(--gf-color-danger, #c02b0a);
    padding-top: 6px;
}

.gform_wrapper.gform-theme--framework .gfield_error input[type="text"]:not(.gchoice_other_control),
.gform_wrapper.gform-theme--framework .gfield_error input[type="email"],
.gform_wrapper.gform-theme--framework .gfield_error input[type="tel"],
.gform_wrapper.gform-theme--framework .gfield_error select,
.gform_wrapper.gform-theme--framework .gfield_error textarea,
.gform_wrapper.gform-theme--framework .gfield_error .gchoice {
    border-color: var(--gf-color-danger, #c02b0a);
}

/* 8. MOBILE */
@media (max-width: 640px) {
    .gform_wrapper.gform-theme--framework .gsection_title {
        font-size: 20px;
    }

    .gform_wrapper.gform-theme.gform-theme--framework .gform_footer button.gform_button.button {
        max-width: 100%;
    }
}
