*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background: #000;
}

.wp-site-blocks {
    color: #fff;
}

main {
    margin: 0;
    padding: 0;
}

main::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('../images/expert-female-architect-reviews-skytrain-site.jpg') no-repeat right center / cover;
    z-index: -2;
}

main::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('../images/Verlauf-Hintergrund.svg') no-repeat center center / cover;
    z-index: -1;
}

.has-global-padding {
    padding: 0;
}

.has-global-padding > .alignfull {
    margin: 0;
}

.container {
    max-width: 1193px;
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 2rem);
}

/* ==========================================================================
   Survey Atom Model
   ========================================================================== */
.survey-results {
    max-width: 1460px;
    margin: 0 auto;
}

.survey-results__meta {
    color: #fff; // #c8a96e
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    margin-bottom: 1.5em;
    text-align: center;
}

.survey-atom {
    background: transparent;
    border-radius: 12px;
    margin-bottom: 2em;
    display: flex;
    justify-content: center;
}

.survey-atom svg {
    width: 100%;
    height: auto;
    max-width: 900px;
}

/*
 * SVG text font-sizes are set in viewBox units via inline attributes in PHP.
 * The SVG scales responsively via viewBox — no CSS clamp() needed for SVG text.
 * CSS handles fill colors, font-weight, and non-size properties.
 */

.survey-atom--total svg {
    max-width: 1100px;
}

/* --- Nucleus text via foreignObject (HTML div) --- */

.survey-atom .atom-nucleus-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    hyphens: auto;
    -webkit-hyphens: auto;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.25;
    padding: 4px;
    box-sizing: border-box;
}

.survey-atom .atom-nucleus-title {
    display: block;
    font-weight: 700;
    color: #fff; // #c8a96e;
    font-size: clamp(0.55rem, 1.2vw, 0.85rem);
    font-family: inherit;
}

.survey-atom .atom-nucleus-subtitle {
    display: block;
    color: #fff; //#c8a96e;
    opacity: 0.7;
    font-size: clamp(0.45rem, 1vw, 0.7rem);
    font-family: inherit;
    margin-top: 2px;
}

.survey-atom .atom-electron-label {
    fill: #fff; //#e8d5b0;
    font-family: inherit;
    opacity: 0.85;
}

.survey-atom .atom-electron-value {
    font-weight: 700;
    fill: #fff; // #c8a96e;
    font-family: inherit;
}

/* --- Hover effect on electron groups --- */

.survey-atom .atom-electron {
    transition: opacity 0.2s;
    cursor: default;
}

.survey-atom .atom-electron:hover {
    opacity: 0.75;
}

/* ==========================================================================
   Gravity Forms
   ========================================================================== */

form span,
form label,
form legend,
form td, form th,
form p.gf_progressbar_title,
p span.gfield_required_asterisk {
    color: #fff !important;
}

.gform_wrapper {
    max-width: 1193px;
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 2rem);
}

/* --- Progress Bar --- */

body .gform_wrapper .gf_progressbar .gf_progressbar_percentage {
    background: rgba(200, 169, 110, 0.85) !important;
}

/* --- Focus --- */

body .gform_wrapper input:focus,
body .gform_wrapper textarea:focus,
body .gform_wrapper select:focus {
    border-color: rgba(200, 169, 110, 0.85) !important;
    box-shadow: 0 0 0 2px rgba(200, 169, 110, 0.4) !important;
    outline: none !important;
}

/* --- Buttons --- */

body .gform_wrapper .gform_page_footer .gform_next_button,
body .gform_wrapper .gform_page_footer input[type="submit"]#gform_submit_button_1 {
    background: rgba(200, 169, 110, 0.85) !important;
    border: none !important;
    color: #fff !important;
}

body .gform_wrapper .gform_page_footer .gform_next_button:hover,
body .gform_wrapper .gform_page_footer input[type="submit"]#gform_submit_button_1:hover {
    background: rgba(200, 169, 110, 1) !important;
}

/* --- Likert Table Styling --- */

body .gform_wrapper .gfield table.gsurvey-likert {
    border-collapse: separate !important;
    border-spacing: 0 15px !important;
    width: 100% !important;
}

/* Hide column headers */
body .gform_wrapper .gfield .gsurvey-likert thead {
    display: none !important;
}

body .gform_wrapper .gfield .gsurvey-likert tbody tr {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(6px);
}

body .gform_wrapper .gfield .gsurvey-likert tbody td {
    padding: 6px 4px !important;
    border-top: 1px solid #fff !important;
    border-bottom: 1px solid #fff !important;
    border-left: none !important;
    border-right: none !important;
    background: transparent !important;
    vertical-align: middle !important;
}

/* First cell = row label */
body .gform_wrapper .gfield .gsurvey-likert tbody td:first-child {
    border-left: 1px solid #fff !important;
    border-radius: 6px 0 0 6px;
    font-size: 0.8rem !important;
    padding-left: 12px !important;
    white-space: normal;
    width: 55%;
}

/* Last cell */
body .gform_wrapper .gfield .gsurvey-likert tbody td:last-child {
    border-right: 1px solid #fff !important;
    border-radius: 0 6px 6px 0;
    padding-right: 8px !important;
}

/* --- Custom Checkbox / Radio Styling --- */

body .gform_wrapper .gfield .gsurvey-likert tbody td:not(:first-child) {
    text-align: center !important;
    vertical-align: middle !important;
}

/* Target all possible input selectors for GravityForms Likert */
body .gform_wrapper .gsurvey-likert input.gsurvey-likert-choice,
body .gform_wrapper .gsurvey-likert input[type="radio"],
body .gform_wrapper .gsurvey-likert input[type="checkbox"],
.gsurvey-likert input.gsurvey-likert-choice,
.gsurvey-likert td input[type="radio"],
.gsurvey-likert td input[type="checkbox"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 57px !important;
    height: 32px !important;
    min-width: 57px !important;
    min-height: 32px !important;
    background: #fff !important;
    border: none !important;
    border-radius: 12px 0 0 0 !important;
    cursor: pointer !important;
    transition: background 0.2s, transform 0.2s;
    vertical-align: middle !important;
    margin: 0 !important;
    padding: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    transform: skewX(-8deg) !important;
}

body .gform_wrapper .gsurvey-likert input.gsurvey-likert-choice:hover,
.gsurvey-likert input.gsurvey-likert-choice:hover,
.gsurvey-likert td input[type="radio"]:hover,
.gsurvey-likert td input[type="checkbox"]:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    opacity: 0.9;
}

body .gform_wrapper .gsurvey-likert input.gsurvey-likert-choice:checked,
.gsurvey-likert input.gsurvey-likert-choice:checked,
.gsurvey-likert td input[type="radio"]:checked,
.gsurvey-likert td input[type="checkbox"]:checked {
    background: rgba(200, 169, 110, 0.85) !important;
    box-shadow: none !important;
}

/* Remove GravityForms Orbital blue dot on checked radio */
body .gform_wrapper .gsurvey-likert input[type="radio"]:checked::before,
body .gform_wrapper .gsurvey-likert input[type="radio"]:checked::after {
    display: none !important;
    content: none !important;
}
