.gfcwi-field {
    margin: 0 !important;
    padding: 0 !important;
}

.gfcwi-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
}

@media (max-width: 768px) {
    .gfcwi-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .gfcwi-grid {
        grid-template-columns: 1fr !important;
    }
}

.gfcwi-item {
    border: 1.5px solid #cbdce4 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    transition: border-color 0.2s ease, background 0.2s ease !important;
    background: #eef3f6 !important;
}

.gfcwi-item:hover {
    border-color: #a8c5d2 !important;
}

.gfcwi-item.gfcwi-checked {
    border-color: #002044 !important;
}

/* Checkbox label row */
.gfcwi-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 12px 14px !important;
    cursor: pointer !important;
    user-select: none !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
}

.gfcwi-label input[type="checkbox"] {
    display: none !important;
}

.gfcwi-box {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    border-radius: 3px !important;
    border: 2px solid #a8c5d2 !important;
    background: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
    transition: background 0.2s ease, border-color 0.2s ease !important;
}

.gfcwi-item.gfcwi-checked .gfcwi-box {
    background: #002044 !important;
    border-color: #002044 !important;
}

.gfcwi-item.gfcwi-checked .gfcwi-box::after {
    content: "\2713" !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

.gfcwi-text {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: #002044 !important;
}

/* Sub-fields area – HIDDEN by default, shown when checked */
.gfcwi-inputs-wrap {
    display: none !important;
    border-top: 1px solid #dce8ed;
    padding: 10px 14px 12px;
    background: #eef3f6;
}

.gfcwi-item.gfcwi-checked .gfcwi-inputs-wrap {
    display: block !important;
}

.gfcwi-input-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 6px !important;
    padding: 0px 14px !important;
}

.gfcwi-input-row:last-child {
    margin-bottom: 0 !important;
}

.gfcwi-input-label {
    font-size: 12px !important;
    color: #002044 !important;
    min-width: 80px !important;
    flex: 1 !important;
    line-height: 1.3 !important;
    font-weight: 400 !important;
}

.gfcwi-input {
    width: 70px !important;
    min-width: 70px !important;
    border: 1.5px solid #cbdce4 !important;
    border-radius: 4px !important;
    padding: 5px 8px !important;
    font-size: 13px !important;
    color: #002044 !important;
    background: #fff !important;
    transition: border-color 0.2s ease !important;
    -moz-appearance: textfield !important;
}

.gfcwi-input[type="text"] {
    width: 120px !important;
    min-width: 100px !important;
    -moz-appearance: none !important;
}

.gfcwi-input::-webkit-outer-spin-button,
.gfcwi-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.gfcwi-input:focus {
    outline: none !important;
    border-color: #002044 !important;
    box-shadow: 0 0 0 2px rgba(0, 32, 68, 0.12) !important;
}

.gfcwi-unit {
    font-size: 12px !important;
    color: #a8c5d2 !important;
    white-space: nowrap !important;
}

/* ── Radio pills ── */
.gfcwi-radio-row {
    flex-wrap: wrap !important;
}

.gfcwi-radio-row .gfcwi-input-label {
    width: 100% !important;
    flex: none !important;
    margin-bottom: 6px !important;
}

.gfcwi-radio-options {
    display: flex !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
}

.gfcwi-radio-pill {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 12px !important;
    border: 1.5px solid #cbdce4 !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    user-select: none !important;
    background: #fff !important;
    transition: all 0.2s ease !important;
    font-size: 12px !important;
    margin: 0 !important;
}

.gfcwi-radio-pill:hover {
    border-color: #a8c5d2 !important;
}

.gfcwi-radio-pill input[type="radio"] {
    display: none !important;
}

.gfcwi-radio-dot {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    border-radius: 50% !important;
    border: 2px solid #cbdce4 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

.gfcwi-radio-pill.gfcwi-radio-selected {
    border-color: #002044 !important;
    background: #eef3f6 !important;
}

.gfcwi-radio-pill.gfcwi-radio-selected .gfcwi-radio-dot {
    border-color: #002044 !important;
    background: #002044 !important;
}

.gfcwi-radio-pill.gfcwi-radio-selected .gfcwi-radio-dot::after {
    content: "" !important;
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #fff !important;
}

.gfcwi-radio-text {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #002044 !important;
    white-space: nowrap !important;
}
