/* 1. ANCHOR LINK OFFSET FIX */
/* Adjusts the scroll position so the header doesn't cover the title */
:target::before {
    content: "";
    display: block;
    height: 120px; /* Adjust this number based on your header height */
    margin: -120px 0 0;
}
/* 1. KILL THE TARGET FOCUS GHOST (The blue frame on jump) */
:target:focus, 
:target {
    outline: none !important;
    box-shadow: none !important;
}

/* 2. THE ANCHOR OFFSET (Stop header overlap) */
:target::before {
    content: "";
    display: block;
    height: 120px; 
    margin: -120px 0 0;
}

/* 3. THE CALLOUT BOX (Restored Style) */
div.event-callout {
    background-color: #f9f9f9 !important;
    border-left: 6px solid #AA0A0A !important;
    padding: 20px 25px !important;
    border-radius: 4px !important;
    margin: 30px 0 !important;
    display: block !important;
}
/* ==========================================================================
   GRAVITY FORMS CUSTOM STYLES (CLEANED)
   ========================================================================== */

/* 1. HIDE ENGLISH TEXT LEGEND */
.gform_required_legend {
    display: none !important;
}

/* 2. MAIN SUBMIT BUTTONS */
.gform_wrapper input[type="submit"], 
.gform_wrapper .gform_button,
.gform_wrapper button:not(.add_list_item):not(.delete_list_item),
.gform_wrapper .gform-theme-button {
    background-color: #222222 !important; 
    color: #ffffff !important;            
    border: 1px solid #222222 !important;
    padding: 10px 20px !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    border-radius: 4px !important;       
    cursor: pointer !important;
}

/* 3. TIGHTEN FIELD SPACING */
.gform_wrapper .gform_body .gfield,
.gform_wrapper li.gfield {
    margin-bottom: 12px !important; /* Shrinks the massive gaps between form fields */
    padding-bottom: 0 !important;
}

/* 4. REVERT LIST FIELD BUTTONS TO TEXT BUTTONS BELOW INPUT */
.gfield_list_group {
    display: block !important; /* Stack actions below input field */
}

.gfield_list_group_actions {
    display: flex !important;
    gap: 10px !important;
    margin-top: 6px !important; /* Gap directly beneath the text field */
    margin-bottom: 12px !important;
}

/* Style the text-based buttons */
.gform_wrapper .gfield_list_group_actions button.add_list_item,
.gform_wrapper .gfield_list_group_actions button.delete_list_item {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-decoration: underline !important;
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
}

/* Color coding for clarity */
.gform_wrapper .gfield_list_group_actions button.add_list_item {
    color: #000000 !important;
}

.gform_wrapper .gfield_list_group_actions button.delete_list_item {
    color: #df1b1b !important; /* Keep minus link a subtle red */
}

/* Hide the raw textual '+' and '-' signs inside the HTML links */
.gform_wrapper .gfield_list_group_actions button::before,
.gform_wrapper .gfield_list_group_actions button::after {
    display: none !important;
}
/* ==========================================================================
   FORCE-REDUCE GIGANTIC FIELD SPACING
   ========================================================================== */

/* Target the field containers directly and crush the margins/paddings */
.gform_wrapper .gform_body .gfield,
.gform_wrapper ul.gform_fields li.gfield,
.gform_wrapper .gform_page_fields > .gfield {
    margin-top: 0 !important;
    margin-bottom: 12px !important; /* Forces a tight, crisp 12px gap instead of centimeters */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Fix any sub-wrappers or descriptions adding extra hidden height */
.gform_wrapper .gfield_description {
    padding-top: 2px !important;
    margin-bottom: 0 !important;
}

/* Fix layout grids in newer Gravity Forms versions that inject row-gaps */
.gform_wrapper .gform_fields {
    grid-row-gap: 12px !important;
    row-gap: 12px !important;
}